EDN logo


Design Ideas: March 1, 1996

PAL facilitates in-system programming

YS Tam
Canadian Marconi Co
Ottawa, ON, Canada


thumbnailThe advantage of in-system programming is to provide software updates or changes in system configurations without any component changes. Figure 1 shows an approach, which includes the 8051 µC, programmable memory device (EEPROM, or flash memory, for example), RS-232C interface, and PAL. The PAL provides proper control signals to the programmable device in both run and program modes. In run mode (S1 is open), the EA input of the µC is at logic "0," and the PAL routes the PSEN signal to the memory device's RD input. The controller fetches code from the external memory device and executes.

In program mode (with S1 grounded), the EA input is at logic "1." The PAL routes the read and write signals from the µC to the programmable device's RD and WR inputs, respectively. The µC executes instructions from its internal ROM. The ROM contains bootload program code that receives data from the RS-232C interface and programs the programmable memory device. Listing 1 shows the PAL equations. (DI #1834)

Listing 1 —PAL equations for in-system programming



| EDN Access | feedback | subscribe to EDN! |
| design features | out in front | design ideas | departments | products |


Copyright © 1996 EDN Magazine. EDN is a registered trademark of Reed Properties Inc, used under license.