mischl
- 18th August 2006, 11:36
hello all
i use a bootloader in a project out in the field.
it is a read in from some buttons and send the value out over serial command. now, sometimes it sends obviously always the same code on each button instead a specific one. it seems that it is after a new power up and stays as long as power is supplied...
beside this, some questions for validation. i have tested all before shipping, but just in case :
- this bootloader (16F876a_04.hex) works also on a 16LF876A, or?
- the bootloader waits after power up for some serial stuff. the pic doesn't send out anything by himself if he hasn't received something first, right?
- in the application program, the code below is at begin. the fuse config and the define osc didn't affect the bootloader, or?
thansk a lot for your answers, mischl
Include "modedefs.bas" ' Include serial modes
'-- FUSE CONFIGURATIONS -----------------------------------------
@ device pic16F876a, hs_osc ' oscillator selection
@ device pic16F876a, wdt_off ' watchdog timer
@ device pic16F876a, pwrt_on ' power-up timer
@ device pic16F876a, bod_on ' brown-out reset
@ device pic16F876a, lvp_off ' low-voltage programming
@ device pic16F876a, cpd_off ' data eeprom protection _on
@ device pic16F876a, wrt_off ' flash program memory write
@ device pic16F876a, protect_on ' program code protection _on
'-- DEFINITIONS -------------------------------------------------
Define LOADER_USED 1 ' for bootloader
DEFINE OSC 4
i use a bootloader in a project out in the field.
it is a read in from some buttons and send the value out over serial command. now, sometimes it sends obviously always the same code on each button instead a specific one. it seems that it is after a new power up and stays as long as power is supplied...
beside this, some questions for validation. i have tested all before shipping, but just in case :
- this bootloader (16F876a_04.hex) works also on a 16LF876A, or?
- the bootloader waits after power up for some serial stuff. the pic doesn't send out anything by himself if he hasn't received something first, right?
- in the application program, the code below is at begin. the fuse config and the define osc didn't affect the bootloader, or?
thansk a lot for your answers, mischl
Include "modedefs.bas" ' Include serial modes
'-- FUSE CONFIGURATIONS -----------------------------------------
@ device pic16F876a, hs_osc ' oscillator selection
@ device pic16F876a, wdt_off ' watchdog timer
@ device pic16F876a, pwrt_on ' power-up timer
@ device pic16F876a, bod_on ' brown-out reset
@ device pic16F876a, lvp_off ' low-voltage programming
@ device pic16F876a, cpd_off ' data eeprom protection _on
@ device pic16F876a, wrt_off ' flash program memory write
@ device pic16F876a, protect_on ' program code protection _on
'-- DEFINITIONS -------------------------------------------------
Define LOADER_USED 1 ' for bootloader
DEFINE OSC 4