RonHackett
Member
I have been testing the 28X1 current consumption at various processor speeds, and I'm getting some confusing results. As expected, supply current varies directly with processor speeds, but I consistently get lower readings with BOD enabled (vs. disabled). My understanding is that the reverse should be true.
Here's the code I used -
The LEDs only blink briefly to let me know which speed I'm at. When current stabilizes, I take a measurement. Here's my results for four internal resonator speeds:
with "enablebod"
m4 = 992uA
k500 = 319uA
k125 = 245uA
k31 = 29uA
with"disablebod"
m4 = 1067uA
k500 = 396uA
k125 = 323uA
k31 = 107uA
Shouldn't the "disablebod" readings be the lower ones, or am I missing something here?
Also, another oddity: I almost always have to reset the 28X1 to get it to load a new program. I thought the 28X1 automatically switched back to 4MHz internal for a program load, but it doesn't seem to be happening!
Finally, I have tried this with 28x1 firmware version 1 and version 2 chips, with similar results. (I haven't been able to get a version 3 chip yet.)
If anyone can clarify why I'm getting these results, that would be great.
Thanks... Ron
Here's the code I used -
Code:
'disablebod
enablebod
main:
setfreq m4 ; set internal resonator frequency
high 7
pause 250 ; LED on
low 7
wait 8
setfreq k500 ; set internal resonator frequency
high 6 ; LED on
pause 30 ; pause a little
low 6 ; LED off
wait 1 ; pause a little
setfreq k125 ; set internal resonator frequency
high 5 ; LED on
pause 8 ; pause a little
low 5 ; LED off
pause 250 ; pause a little
setfreq k31 ; set internal resonator frequency
high 4 ; LED on
pause 10 ; pause a little
low 4 ; LED off
pause 62 ; pause a little
goto main
with "enablebod"
m4 = 992uA
k500 = 319uA
k125 = 245uA
k31 = 29uA
with"disablebod"
m4 = 1067uA
k500 = 396uA
k125 = 323uA
k31 = 107uA
Shouldn't the "disablebod" readings be the lower ones, or am I missing something here?
Also, another oddity: I almost always have to reset the 28X1 to get it to load a new program. I thought the 28X1 automatically switched back to 4MHz internal for a program load, but it doesn't seem to be happening!
Finally, I have tried this with 28x1 firmware version 1 and version 2 chips, with similar results. (I haven't been able to get a version 3 chip yet.)
If anyone can clarify why I'm getting these results, that would be great.
Thanks... Ron