Philips Semiconductors
User’s Manual - Preliminary -
P89LPC906/907/908
FLASH PROGRAM MEMORY
2003 Dec 8
95
Figure 14-6: C-language routine to read a flash element
#include <REG921.H>
unsigned char READ_EL (unsigned char);
unsigned char GET_EL;
void main ()
{
GET_EL = READ_EL(0x02);
}
unsigned char READ_EL (unsigned char el_addr)
{
#define CONF
0x6C
// access flash elements
unsigned char el_data;
// local for element data
FMADRL
= el_addr;
//write element address to addr reg
FMCON = CONF;
//access flash elements command
el_data
= FMDATA;
/read the element data
return(el_data);
}
Содержание P89LPC906
Страница 30: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 CLOCKS 2003 Dec 8 30 ...
Страница 34: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 INTERRUPTS 2003 Dec 8 34 ...
Страница 40: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 I O PORTS 2003 Dec 8 40 ...
Страница 46: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 TIMERS 0 AND 1 2003 Dec 8 46 ...
Страница 52: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 REAL TIME CLOCK SYSTEM TIMER 2003 Dec 8 52 ...
Страница 58: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 POWER MONITORING FUNCTIONS 2003 Dec 8 58 ...
Страница 70: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 UART 2003 Dec 8 70 ...
Страница 76: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 ANALOG COMPARATORS 2003 Dec 8 76 ...
Страница 86: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 WATCHDOG TIMER 2003 Dec 8 86 ...
Страница 104: ...Philips Semiconductors User s Manual Preliminary P89LPC906 907 908 REVISION HISTORY 2003 Dec 8 104 ...