Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/08/05 07:31
Read: times


 
#86867 - habit fails
Responding to: ???'s previous message
hi,

Joseph Hebert said:
You should be able to execute the bootloader via hardware conditions at startup. Hold EA at logic hi and PSEN at logic lo during the falling edge of the reset pulse. This will force the bootloader to execute. Be aware that PSEN is normally an output pin. Thus, once the reset edge has fallen, it is probably a good idea to release the PSEN pin.

That`s wrong because T89C51CC02 has neither EA not PSEN pin.

I think you fails with habit to think that all Atmel chips with bootloader have the same hardware conditions for execute it. That is almost wrong.

Well, about original user problem.
Rob, read T89C51CC02 datasheet and T89C51CC02 UART bootloader datasheet. In main, you must read all the documentation before do something with hardware and programming.
In the UART bootloader datasheet you may found next text:

Hardware Condition

The Hardware Condition forces the bootloader execution from reset.
The default factory Hardware Condition is assigned to port P1.
• P1 must be equal to FEh
In order to offer the best flexibility, the user can define its own Hardware Condition on one of this following Port:
• Port1
• Port3
• Port4 (only bit0 and bit1)

The Hardware Condition configuration are stored in three bytes called P1_CF, P3_CF, P4_CF.
These bytes can be modified by the user through a set of API or through an ISP command.
There is a priority between P1_CF, P3_CF and P4_CF (see boot process diagram).

Note: The BLJB must ba at 0 (programmed) to be able to restart the bootloader
.
If the BLJB is equal to 1 (unprogrammed) only the hardware parallel programmer can change this bit (see T89C51CC02 Datasheet for more detail).

So:
- if you have somehow erased bit BLJB then the only way to connect bootloader is re-program BLJB with parallel programmer.
- if BLJB is still programmed then try to remember what you have programmed to P1_CF, P3_CF and P4_CF. Then create hardware bootloader conditions.
- if you do not changed P1_CF, P3_CF and P4_CF then at reset state connect pins of P1 to represent value 0xFE and then remove reset signal. Then try connect to bootloader from Flip.

Regards,
Oleg

List of 7 messages in thread
TopicAuthorDate
FLIP Programing Trouble            01/01/70 00:00      
   a guess            01/01/70 00:00      
   Hardware boot sequence            01/01/70 00:00      
      good stuff            01/01/70 00:00      
      habit fails            01/01/70 00:00      
   ISP Mode            01/01/70 00:00      
      is this it            01/01/70 00:00      

Back to Subject List