Part Number Hot Search : 
JL124SDA AD8051 13003G GLZ24A EGPD250E 2N3833ML 332ML 06L15PB
Product Description
Full Text Search
 

To Download SAFC509-L Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet 09.96 mi c r o c omp u ter compone n t s c509-l 8-bit cmos microcontroller
semiconductor group 1 09.96 c509-l 8-bit cmos microcontroller advance information c509-l full upward compatibility with sab 80c517/80c517a and 8051/c501 microcontrollers 256 byte on-chip ram 3k byte of on-chip xram 256 directly addressable bits 375 ns instruction cycle at 16-mhz oscillator frequency on-chip emulation support logic (enhanced hooks technology tm ) external program and data memory expandable up to 64 kbyte each 8-bit a/d converter with 15 multiplexed inputs and built-in self calibration two 16-bit timers/counters (8051 compatible) three 16-bit timers/counters (can be used in combination with the compare/capture unit) powerful compare/capture unit (ccu) with up to 29 high-speed or pwm output channels or 13 capture inputs arithmetic unit for division, multiplication, shift and normalize operations eight datapointers instead of one for indirect addressing of program and external data memory (further features are on next page) figure 1 c509-l functional units
c509-l semiconductor group 2 features (continued) : extended watchdog facilities 15-bit programmable watchdog timer oscillator watchdog ten i/o ports eight bidirectional 8-bit i/o ports with selectable port structure quasi-bidirectional port structure (8051 compatible) bidirectional port structure with cmos voltage levels one 8-bit and one 7-bit input port for analog and digital input signals two full-duplex serial interfaces with own baud rate generators four priority level interrupt systems, 19 interrupt vectors three power saving modes slow-down mode idle mode power-down mode siemens high-performance acmos technology m-qfp-100-2 rectangular quad flat package temperature ranges : sab-c509-l t a = 0 to 70 c saf-c509-l t a = -40 to 85 c the c509-l is a high-end microcontroller in the siemens c500 8-bit microcontroller family. lt is based on the well-known industry standard 8051 architecture; a great number of enhancements and new peripheral features extend its capabilities to meet the extensive requirements of new applications. further, the c509-l is a superset of the siemens sab 80c517/80c517a 8-bit microcontroller thus offering an easy upgrade path for sab 80c517/80c517a users. the high performance of the c509-l microcontroller is achieved by the c500-core with a maximum operating frequency of 16 mhz internal (and external) cpu clock. while maintaining all the features of the sab 80c517a, the c509-l is expanded by one i/o port, in its compare/capture capabilities, by a/d converter functions, by additional 1 kbyte of on-chip ram (now 3 kbyte xram) and by an additional user-selectable cmos port structure. the c509-l is mounted in a p-mqfp-100-2 package. note: versions for extended temperature ranges ?40 ?c to 110 ?c (sah-c509-l) and ?40 ?c t o 125 ?c (sak-c509-l) are available on request. ordering information type ordering code package description (8-bit cmos microcontroller) sab-c509-lm q67120-c1045 p-mqfp-100-2 for external memory (16 mhz) saf-c509-lm q67120-c0983 p-mqfp-100-2 for external memory (16 mhz) ext. temp. ?40 ?c to 85 ?c
semiconductor group 3 09.96 c509-l figure 2 logic symbol
c509-l semiconductor group 4 figure 3 c509-l pin configuration (p-mqfp-100-2, top view)
semiconductor group 5 09.96 c509-l table 1 pin de?itions and functions symbol pin number i/o*) function p1.0 - p1.7 9-6, 1, 100-98 9 8 7 6 1 100 99 98 i/o port 1 is an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 1 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 1 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 1 can also be switched into a bidirectional mode, in which cmos levels are provided. in this bidirectional mode, each port 1 pin can be programmed individually as input or output. port 1 also contains the interrupt, timer, clock, capture and compare pins that are used by various options. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate (except when used for the compare functions). the secondary functions are assigned to the pins of port 1 as follows : p1.0 int3 cc0 interrupt 3 input / compare 0 output / capture 0 input p1.1 int4 cc1 interrupt 4 input / compare 1 output / capture 1 input p1.2 int5 cc2 interrupt 5 input / compare 2 output / capture 2 input p1.3 int6 cc3 interrupt 6 input / compare 3 output / capture 3 input p1.4 int2 cc4 interrupt 2 input / compare 4 output / capture 4 input p1.5 t2ex timer 2 external reload trigger input p1.6 clkout system clock output p1.7 t2 counter 2 input *) i = input o = output
c509-l semiconductor group 6 p9.0 - p9.7 74-77, 5-2 i/o port 9 is an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 9 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 9 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 9 can also be switched into a bidirectional mode, in which cmos levels are provided. in this bidirectional mode, each port 1 pin can be programmed individually as input or output. port 9 also serves alternate compare functions. the out- put latch corresponding to a secondary function must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the pins of port 9 as follows : p9.0-p9.7 cc10-cc17 compare/capture channel 0-7 output/input xtal2 12 xtal2 is the input to the inverting oscillator amplifier and input to the internal clock generator circuits. when supplying the c509-l with an external clock source, xtal2 should be driven, while xtal1 is left unconnected. a duty cycle of 0.4 to 0.6 of the clock signal is required. minimum and maximum high and low times as well as rise/fall times specified in the ac characteristics must be observed. xtal1 13 xtal1 output of the inverting oscillator amplifier. this pin is used for the oscillator operation with crystal or ceramic resonartor *) i = input o = output table 1 pin de?itions and functions (cont?) symbol pin number i/o*) function
semiconductor group 7 09.96 c509-l p2.0 ?p2.7 14-21 i/o port 2 is a 8-bit i/o port. port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (movx @dptr). in this application it uses strong internal pullup resistors when issuing 1s. during accesses to external data memory that use 8-bit addresses (movx @ri), port 2 issues the contents of the p2 special function register. p2.0 - p2.7 a8 - a15 address lines 8 - 15 psen / rdf 22 o program store enable / read flash the psen output is a control signal that enables the external program memory to the bus during external code fetch operations. it is activated every third oscillator period. psen is not activated during external data memory accesses caused by movx instructions. psen is not activated when instructions are executed from the internal boot rom or from the xram. in external programming mode rdf becomes active when executing external data memory read (movx) instructions. ale 23 o address latch enable this output is used for latching the low byte of the address into external memory during normal operation. it is activated every third oscillator period except during an external data memory access caused by movx instructions. ea 24 i external access enable the status of this pin is latched at the end of a reset. when held at low level, the c509-l fetches all instructions from the external program memory. for the c509-l this pin must be tied low. prgen 25 i external flash-eprom program enable a low level at this pin disables the programming of an external flash-eprom. to enable the programming of an external flash-eprom, the pin prgen must be held at high level and bit prgen1 in sfr syscon1 has to be set. there is no internal pullup resistor connected to this pin. *) i = input o = output table 1 pin de?itions and functions (cont?) symbol pin number i/o*) function
c509-l semiconductor group 8 p0.0 ?p0.7 26, 27, 30-35 i/o port 0 is an 8-bit open-drain bidirectional i/o port. port 0 pins that have 1s written to them float, and in that state can be used as high-impendance inputs. port 0 is also the multiplexed low-order address and data bus during accesses to external program or data memory. in this operating mode it uses strong internal pullup resistors when issuing 1 s. p0.0 - p0.7 ad0-ad7 address/data lines 0 - 7 hwpd 36 i hardware power down a low level on this pin for the duration of one machine cycle while the oscillator is running resets the c509-l. a low level for a longer period will force the part to power down mode with the pins floating. there is no internal pullup resistor connected to this pin. p5.0 - p5.7 44-37 i/o port 5 is an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 5 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 5 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 5 can also be switched into a bidirectional mode, in which cmos levels are provided. in this bidirectional mode, each port 5 pin can be programmed individually as input or output. port 5 also serves as alternate function for ?oncurrent compare?and "set/reset compare?functions. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the pins of port 5 as follows : p5.0 - p5.7 ccm0-ccm7 concurrent compare or set/reset lines 0 - 7 *) i = input o = output table 1 pin de?itions and functions (cont?) symbol pin number i/o*) function
semiconductor group 9 09.96 c509-l owe 45 i oscillator watchdog enable a high level on this pin enables the oscillator watchdog. when left unconnected, this pin is pulled high by a weak internal pullup resistor. the logic level at owe should not be changed during normal operation. when held at low level the oscillator watchdog function is turned off. during hardware power down the pullup resistor is switched off. p6.0 - p6.7 46-50, 54-56 46 47 48 49 i/o port 6 is an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 6 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 6 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 6 can also be switched into a bidirectional mode, in which cmos levels are provided. in this bidirectional mode, each port 6 pin can be programmed individually as input or output. port 6 also contains the external a/d converter control pin, the receive and transmission lines for the serial port 1, and the write-flash control signal. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the pins of port 6 as follows : p6.0 adst external a/d converter start pin p6.1 r d1 receiver data input of serial interface 1 p6.2 t d1 transmitter data output of serial interface 1 p6.3 wrf the wrf (write flash) signal is active when the programming mode is selected. in this mode wrf becomes active when executing external data memory write (movx) instructions. *) i = input o = output table 1 pin de?itions and functions (cont?) symbol pin number i/o*) function
c509-l semiconductor group 10 p8.0 - p8.6 57-60, 51-53 i port 8 is a 7-bit unidirectional input port. port pins can be used for digital input if voltage levels meet the specified input high/low voltages, and for the higher 7-bit of the multiplexed analog inputs of the a/d converter simultaneously. p8.0 - p8.6 ain8 - ain14 analog input 8 - 14 ro 61 o reset output this pin outputs the internally synchronized reset request signal. this signal may be generated by an external hardware reset, a watchdog timer reset or an oscillator watchdog reset. the ro output is active low. p4.0 ?p4.7 64-66, 68-72 i/o port 4 is an 8-bit quasi-bidirectional i/o port with internal pull-up resistors. port 4 pins that have 1? written to them are pulled high by the internal pull-up resistors, and in that state can be used as inputs. as inputs, port 4 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pull-up resistors. port 4 also erves as alternate compare functions. the output latch corresponding to a secondary functionmust be programmed to a one (1) for that function to operate. the secondary functions are assigned to the pins of port 4 as follows : p4.0 - p4.7 cm0 - cm7 compare channel 0 - 7 pe / swd 67 i power saving modes enable / start watchdog timer a low level on this pin allows the software to enter the power down mode, idle and slow down mode. if the low level is also seen during reset, the watchdog timer function is off on default. usage of the software controlled power saving modes is blocked, when this pin is held on high level. a high level during reset performs an automatic start of the watchdog timer immediately after reset. when left unconnected this pin is pulled high by a weak internal pullup resistor. during hardware power down the pullup resistor is switched off. *) i = input o = output table 1 pin de?itions and functions (cont?) symbol pin number i/o*) function
semiconductor group 11 09.96 c509-l reset 73 i reset a low level on this pin for the duration of one machine cycle while the oscillator is running resets the c509-l. a small internal pullup resistor permits power-on reset using only a capacitor connected to v ss . v aref 78 reference voltage for the a/d converter v agnd 79 reference ground for the a/d converter p7.0 - p7.7 87-80 i port 7 port 7 is an 8-bit unidirectional input port. port pins can be used for digital input if voltage levels meet the specified input high/low voltages, and for the lower 8-bit of the multiplexed analog inputs of the a/d converter simultaneously. p7.0 - p7.7 ain0 - ain7 analog input 0 - 7 *) i = input o = output table 1 pin de?itions and functions (cont?) symbol pin number i/o*) function
c509-l semiconductor group 12 p3.0 ?p3.7 90-97 90 91 92 93 94 95 96 97 i/o port 3 is an 8-bit quasi-bidirectional i/o port with internal pullup resistors. port 3 pins that have 1's written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 3 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup resistors. port 3 also contains two external interrupt inputs, the timer 0/1 inputs, the serial port 0 receive/transmit line and the external memory strobe pins. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the port pins of port 3 as follows p3.0 r d0 receiver data input (asynchronous) or data input/output (synchronous) of serial interface 0 p3.1 t d0 transmitter data output (asynchronous) or clock output (synchronous) of the serial interface 0 p3.2 int0 interrupt 0 input / timer 0 gate control p3.3 int1 interrupt 1 input / timer 1 gate control p3.4 t0 counter 0 input p3.5 t1 counter 1 input p3.6 wr the write control signal latches the data byte from port 0 into the external data memory p3.7 rd / the read control signal enables the external data memory to port 0 psenx psenx (external program store enable) enables the external code memory when the external / internal xram mode or external / internal programming mode is selected. v ss 10, 28, 62, 88 circuit ground potential v cc 11, 29, 63, 89 supply terminal for all operating modes *) i = input o = output table 1 pin de?itions and functions (cont?) symbol pin number i/o*) function
semiconductor group 13 09.96 c509-l figure 4 block diagram of the c509-l
c509-l semiconductor group 14 cpu the c509-l is efficient both as a controller and as an arithmetic processor. it has extensive facilities for binary and bcd arithmetic and excels in its bit-handling capabilities. efficient use of program memory results from an instruction set consisting of 44 % one-byte, 41 % two-byte, and 15% three- byte instructions. with a 6 mhz crystal, 58% of the instructions are executed in 1.0 m s ( 12 mhz: 500 ns, 16 mhz : 375 ns). special function register psw (address d0 h ) reset value : 00 h bit function cy carry flag used by arithmetic instruction. ac auxiliary carry flag used by instructions which execute bcd operations. f0 general purpose flag rs1 rs0 register bank select control bits these bits are used to select one of the four register banks. ov overflow flag used by arithmetic instruction. f1 general purpose flag p parity flag set/cleared by hardware after each instruction to indicate an odd/even number of "one" bits in the accumulator, i.e. even parity. cy ac f0 rs1 rs0 ov f1 p d0 h psw d7 h d6 h d5 h d4 h d3 h d2 h d1 h d0 h bit no. msb lsb rs1 rs0 function 0 0 bank 0 selected, data address 00 h -07 h 0 1 bank 1 selected, data address 08 h -0f h 1 0 bank 2 selected, data address 10 h -17 h 1 1 bank 3 selected, data address 18 h -1f h
semiconductor group 15 09.96 c509-l memory organization the c509-l cpu manipulates data and operands in the following five address spaces: up to 64 kbyte of external program memory up to 64 kbyte of external data memory 512 byte of internal boot rom (program memory) 256 bytes of internal data memory 3 kbyte of external xram data memory a 128 byte special function register area figure 5 illustrates the memory address spaces of the c509-l. figure 5 c509-l memory map the c509-l can operate in four different operating modes (chipmodes) with different program and data memory organizations : normal mode xram mode bootstrap mode programming mode table 2 describes the program and data memory areas which are available in the different chipmodes of the c509-l. it also shows the control bits of sfr syscon1, which are used for the software selection of the chipmodes. figures 6 to 9 shows the four chipmode configurations with the code and data memory partitioning.
c509-l semiconductor group 16 table 2 overview of program and data memory organization operating mode (chipmode) program memory data memory syscon1 bits ext. int. ext. int. prgen 1 swap normal mode 0000 h - ffff h 0000 h - f3ff h f400 h - ffff h (xram) 00 xram mode 0200 h - f3ff h 0000 h - 01ff h = boot rom; f400 h - ffff h = (xram) 0000 h - ffff h (read only) 01 bootstrap mode 0200 h - f3ff h 0000 h - 01ff h = boot rom 0000 h - f3ff h f400 h ffff h (xram) 10 programming mode 0200 h - ffff h 0000 h - 01ff h = boot rom; f400 h - ffff h = xram 0000 h - ffff h (read and write) 11
semiconductor group 17 09.96 c509-l normal mode configuration the normal mode is the standard 8051 compatible operating mode of the c509-l. in this mode 64k byte external code memory and 61k byte external sram as well as 3k byte internal data memory (xram) are provided. if the is disabled (default after reset), totally 64k byte external data memory are available. the boot rom is disabled. the external program memory is controlled by the psen / rdf signal. read and write accesses to the external data memory are controlled by the rd and wr pins of port 3. figure 6 locations of code- and data memory in normal mode
c509-l semiconductor group 18 xram mode configuration the xram mode is implemented in the c509-l for executing e.g. up to 3k byte diagnostic software which has been loaded into the xram in the bootstrap mode via the serial interface. in this operating mode the boot rom, the xram, and the external data memory are mapped into the code memory area, while the external rom/eprom is mapped into the external data memory area. external program memory fetches from the sram are controlled by the p3.7/rd /psenx pin. external data memory read accesses from the rom/eprom are controlled by the psen /rdf pin. in xram mode, the external data memory can only be read but not written. figure 7 locations of code- and data memory in xram mode
semiconductor group 19 09.96 c509-l bootstrap mode configuration in the bootstrap mode the boot rom and the external flash/rom/eprom are mapped into the code memory area. 61k byte external sram as well as 3k byte internal data memory (xram) are provided in the external data memory area. the external program memory is controlled by the psen /rdf signal. read and write accesses to the external data memory are controlled by the rd and wr pins of port 3. figure 8 locations of code- and data memory in bootstrap mode
c509-l semiconductor group 20 programming mode configuration the external programming mode is implemented for the in-circuit programming of external 5v-only flash eproms. similar as in the xram mode, the boot rom, the xram, and the external data memory (sram) are mapped into the code memory area, while the external flash memory is mapped into the external data memory area. additionally to the xram mode, the flash memory can also be written through external data memory accesses (movx instructions). external program memory fetches from the sram are controlled by the p3.7/rd /psenx pin. external data memory read/write accesses from/to the rom/eprom are controlled by the psen /rdf and p6.3/wrf pin. figure 9 locations of code- and data memory in programming mode
semiconductor group 21 09.96 c509-l the bootstrap loader the c509-l includes a bootstrap mode, which is activated by setting the prgen pin at logic high level at the rising edge of the reset or the hwpd signal (bit prgen1=1). in this mode software routines of the bootstrap loader, located at the addresses 0000 h to 01ff h in the boot rom will be executed. its purpose is to allow the easy and quick programming of the internal xram (f400 h to ffff h ) via serial interface while the mcu is in-circuit. this allows to transfer custom routines to the xram, which will program an external 64 kbyte flash memory. the serial routines of the bootstrap loader may be replaced by own custom software or even can be blocked to prevent unauthorized persons from reading out or writing to the external flash memory. therefore the bootstrap loader checks an external flash memory for existing custom software and executes it. the bootstrap loader consists of three functional parts which represent the three phases as described below. phase i : check for existing custom software in the external flash memory and execute it. phase ii : establish a serial connection and automatically synchronize to the transfer speed (baud rate) of the serial communication partner (host). phase iii : perform the serial communication to the host. the host controls the bootstrap loader by sending header informations, which select one of four operating modes. these modes are : mode 0 : transfer a custom program from the host to the xram (f400 h - ffff h ). this mode returns to the beginning of phase iii. mode 1 : execute a custom program in the xram at any start address from f400 h to ffff h . mode 2 : check the contents of any area of the external flash memory by cal- culating a checksum. this mode returns to the beginning of phase iii. mode 3 : execute a custom program in the flash memory at any start address beyond 0200 h (at addresses 0000 h to 01ff h the boot-rom is active). the three phases of the bootstrap loader program and their connections are illustrated in figure 10 .
c509-l semiconductor group 22 figure 10 the three phases of the bootstrap loader the serial communication, which is activated in phase ii is performed with the integrated serial interface 0 of the c509-l. using a full- or half-duplex serial cable (rs232) the mcu must be connected to the serial port of the host computer as shown in figure . figure 11 bootstrap loader interface to the pc
semiconductor group 23 09.96 c509-l control of xram access the xram in the c509-l is a memory area that is logically located at the upper end of the external memory space, but is integrated on the chip. because the xram is used in the same way as external data memory the same instruction types (movx) must be used for accessing the xram. two bits in sfr syscon, xmap0 and xmap1, control the accesses to the xram. special function register syscon (address b1 h ) reset value : 1010xx01 b bit xmap0 is hardware protected. if it is reset once (xram access enabled) it cannot be set by software. only a reset operation will set the xmap0 bit again. the xram can be accessed by read/write instructions (movx a,dptr, movx @dptr,a), which use the 16-bit dptr for indirect addressing. for accessing the xram, the effective address stored in dptr must be in the range of f700 h to ffff h .38 the xram can be also accessed by read/write instructions (movx a,@ri, movx @ri,a), which use only an 8-bit address (indirect addressing with registers r0 or r1). therefore, a special page register xpage which provides the upper address information (a8-a15) during 8-bit xram accesses. the behaviour of port 0 and p2 during a movx access depends on the control bits xmap0 and xmap1 in register syscon and on the state of pin ea . table 3 lists the various operating conditions. bit function xmap1 xram visible access control control bit for rd /wr signals during xramaccesses. if addresses are outside the xram address range or if xram is disabled, this bit has no effect. xmap1 = 0 : the signals rd and wr are not activated during accesses to the xram xmap1 = 1 : ports 0, 2 and the signals rd and wr are activated during accesses to xram. in this mode, address and data information during xram/can controller accesses are visible externally. xmap0 global xram access enable/disable control xmap0 = 0 : the access to xram is enabled. xmap0 = 1 : the access to xram is disabled (default after reset!). all movx accesses are performed via the external bus. further, this bit is hardware protected. 76543210 1 rmap b1 h syscon bit no. msb lsb xmap1 clkp pmod xmap0 the functions of the shaded bits are not used for xram control.
c509-l semiconductor group 24 table 3 behaviour of p0/p2 and rd/ wr during movx accesses ea = 0 ea = 1 xmap1, xmap0 xmap1, xmap0 00 10 x1 00 10 x1 movx @dptr dptr < xram address range a)p0/p2 ? bus b) rd/ wr active c)ext.memory is used a)p0/p2 ? bus b) rd/ wr active c)ext.memory is used a)p0/p2 ? bus b) rd/ wr active c)ext.memory is used a)p0/p2 ? bus b) rd/ wr active c)ext.memory is used a)p0/p2 ? bus b) rd/ wr active c)ext.memory is used a)p0/p2 ? bus b) rd/ wr active c)ext.memory is used dptr 3 xram address range a)p0/p2 ? bus ( wr / rd data) b) rd/ wr inactive c)xram is used a)p0/p2 ? bus ( wr / rd data) b) rd/ wr active c)xram is used a)p0/p2 ? bus b) rd/ wr active c) ext.memory is used a)p0/p2 ? i/0 b) rd/ wr inactive c)xram is used a)p0/p2 ? bus ( wr / rd data) b) rd/ wr active c)xram is used a)p0/p2 ? bus b) rd/ wr active c) ext.memory is used movx @ ri xpage < xram addr.page range a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used xpage 3 xram addr.page range a)p0 ? bus ( wr / rd data) p2 ? i /o b) rd/ wr inactive c)xram is used a)p0 ? bus ( wr / rd data) p2 ? i /o b) rd/ wr active c)xram is used a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used a)p2 ? i /o p0/p2 ? i /o b) rd/ wr inactive c)xram is used a)p0 ? bus ( wr / rd data) p2 ? i /o b) rd/ wr active c)xram is used a)p0 ? bus p2 ? i /o b) rd/ wr active c)ext.memory is used modes compatible to 8051/c501 family
semiconductor group 25 09.96 c509-l reset and system clock the reset input is an active low input at pin reset . since the reset is synchronized internally, the reset pin must be held low for at least two machine cycles (12 oscillator periods) while the oscillator is running. a pullup resistor is internally connected to v cc to allow a power-up reset with an external capacitor only. an automatic reset can be obtained when v cc is applied by connecting the reset pin to v ss via a capacitor. figure 12 shows the possible reset circuitries. figure 12 reset circuitries figure 13 shows the recommended oscillator circiutries for crystal and external clock operation. figure 13 recommended oscillator circuitries
c509-l semiconductor group 26 multiple datapointers as a functional enhancement to the standard 8051 architecture, the c509-l contains eight 16-bit datapointers instead of only one datapointer. the instruction set uses just one of these datapointers at a time. the selection of the actual datapointer is done in the special function regsiter dpsel. figure 14 illustrates the datapointer addressing mechanism. figure 14 external data memory addressing using multiple datapointers
semiconductor group 27 09.96 c509-l enhanced hooks emulation concept the enhanced hooks emulation concept of the c500 microcontroller family is a new, innovative way to control the execution of c500 mcus and to gain extensive information on the internal operation of the controllers. emulation of on-chip rom based programs is possible, too (not true for the c509-l, because it lacks internal program memory). each production chip has built-in logic for the supprt of the enhanced hooks emulation concept. therefore, no costly bond-out chips are necessary for emulation. this also ensure that emulation and production chips are identical. the enhanced hooks technology tm , which requires embedded logic in the c500 allows the c500 together with an eh-ic to function similar to a bond-out chip. this simplifies the design and reduces costs of an ice-system. ice-systems using an eh-ic and a compatible c500 are able to emulate all operating modes of the different versions of the c500 microcontrollers. this includes emulation of rom, rom with code rollover and romless modes of operation. it is also able to operate in single step mode and to read the sfrs after a break. figure 15 basic c500 mcu enhanced hooks concept configuration port 0, port 2 and some of the control lines of the c500 based mcu are used by enhanced hooks emulation concept to control the operation of the device during emulation and to transfer informations about the programm execution and data transfer between the external emulation hardware (ice-system) and the c500 mcu.
c509-l semiconductor group 28 special function registers all registers, except the program counter and the four general purpose register banks, reside in the special function register area. several special function registers of the c509-l (cc10-17, ct1rel, cc1en, cafr) are located in the mapped special function register area. for accessing the mapped special function register area, bit rmap in special function register syscon must be set. all other special function registers are located in the standard special function register area. as long as bit rmap is set, mapped special function registers can be accessed. this bit is not cleared by hardware automatically. special function register syscon (address b1 h ) reset value : 1010xx01 b the 103 special function register (sfr) include pointers and registers that provide an interface between the cpu and the other on-chip peripherals. the sfrs of the c509-l are listed in table 4 and table 5 . in table 4 they are organized in groups which refer to the functional blocks of the c509- l. table 5 illustrates the contents of the sfrs in numeric order of their addresses. the most right column of table 5 indicates if an sfr is accessed with a mapped procedure controlled by either rmap or pdir. bit function rmap special function register map bit rmap = 0 : the access to the non-mapped (standard) special function register area is enabled (reset value). rmap = 1 : the access to the mapped special function register area is enabled. 76543210 1 rmap b1 h syscon bit no. msb lsb xmap1 clkp pmod xmap0
semiconductor group 29 09.96 c509-l table 4 special function registers - functional blocks block symbol name address contents after reset cpu acc b dph dpl dpsel psw sp syscon1 accumulator b-register data pointer, high byte data pointer, low byte data pointer select register program status word stack pointer system control register 1 e0 h 1 ) f0 h 1 ) 83 h 82 h 92 h d0 h 1 ) 81 h b2 h 00 h 00 h 00 h 00 h xxxxx000 b 3) 00 h 07 h 00xxxee0 b 3)6) sfr mapping syscon 2) system control register b1 h 1010xx01 b 3) interrupt system ien0 ctcon 2) ct1con 2) ien1 2) ien2 2) ien3 ip0 2) ip1 2) ircon0 ircon1 ircon2 4) eicc1 4) tcon 2) t2con 2) interrupt enable register 0 compare timer control register compare timer 1 control register interrupt enable register 1 interrupt enable register 2 interrupt enable register 3 interrupt priority register 0 interrupt priority register 1 interrupt request control register 0 interrupt request control register 1 interrupt request control register 2 interrupt request enable register for ct1 timer control register timer 2 control register a8 h 1) e1 h bc h b8 h 1) 9a h be h a9 h b9 h c0 h 1) d1 h bf h bf h 88 h 1) c8 h 1) 00 h 01000000 b 3) x1xx0000 b 3) 00 h xx0000x0 b 3) xxxx00xx b 3) 00 h 0x000000 b 3) 00 h 00 h 00 h ff h 00 h 00 h xram xpage syscon 2) page address register for xram system control register 91 h b1 h 00 h 1010xx01 b 3) a/d converter adcon0 adcon1 addath addatl a/d converter control register 0 a/d converter control register 1 a/d converter data register, high byte a/d converter data register, low byte d8 h 1) dc h d9 h da h 00 h 01000000 b 3 ) 00 h 00 h 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate or the location is reserved 4) register is mapped by bit pdir. 5) register is mapped by bit rmap. 6) ??means that the value of the bit is defined by the logic level at pin prgen at the rising edge of the reset or hwpd signals .
c509-l semiconductor group 30 compare / capture unit (ccu) timer 2 ccen cc4en cch1 cch2 cch3 cch4 ccl1 ccl2 ccl3 ccl4 cmen 5) cmh0 5) cmh1 5) cmh2 5) cmh3 5) cmh4 5) cmh5 5) cmh6 5) cmh7 5) cml0 5) cml1 5) cml2 5) cml3 5) cml4 5) cml5 5) cml6 5) cml7 5) cc1en 5) cc1h0 5) cc1h1 5) cc1h2 5) cc1h3 5) cc1h4 5) cc1h5 5) cc1h6 5) cc1h7 5) cc1l0 5) cc1l1 5) cc1l2 5) cc1l3 5) cc1l4 5) cc1l5 5) cc1l6 5) cc1l7 5 cmsel 5 ) compare/capture enable register compare/capture 4 enable register compare/capture register 1, high byte compare/capture register 2, high byte compare/capture register 3, high byte compare/capture register 4, high byte compare/capture register 1, low byte compare/capture register 2, low byte compare/capture register 3, low byte compare/capture register 4, low byte compare enable register compare register 0, high byte compare register 1, high byte compare register 2, high byte compare register 3, high byte compare register 4, high byte compare register 5, high byte compare register 6, high byte compare register 7, high byte compare register 0, low byte compare register 1, low byte compare register 2, low byte compare register 3, low byte compare register 4, low byte compare register 5, low byte compare register 6, low byte compare register 7, low byte compare/capture enable register compare/capture 1 register 0, high byte compare/capture 1 register 1, high byte compare/capture 1 register 2, high byte compare/capture 1 register 3, high byte compare/capture 1 register 4, high byte compare/capture 1 register 5, high byte compare/capture 1 register 6, high byte compare/capture 1 register 7, high byte compare/capture 1 register 0, low byte compare/capture 1 register 1, low byte compare/capture 1 register 2, low byte compare/capture 1 register 3, low byte compare/capture 1 register 4, low byte compare/capture 1 register 5, low byte compare/capture 1 register 6, low byte compare/capture 1 register 7, low byte compare input select c1 h c9 h c3 h c5 h c7 h cf h c2 h c4 h c6 h ce h f6 h d3 h d5 h d7 h e3 h e5 h e7 h f3 h f5 h d2 h d4 h d6 h e2 h e4 h e6 h f2 h f4 h f6 h d3 h d5 h d7 h e3 h e5 h e7 h f3 h f5 h d2 h d4 h d6 h e2 h e4 h e6 h f2 h f4 h f7 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 5) register is mapped by bit rmap. table 4 special function registers - functional blocks (cont?) block symbol name address contents after reset
semiconductor group 31 09.96 c509-l compare / capture unit (ccu) timer 2 cont? cafr 5) crch crcl comsetl comseth comclrl comclrh setmsk clrmsk ctcon 2) ctrelh 5) ctrell 5) ct1relh 5) ct1rell 5) th2 tl2 t2con 2) ct1con 2) prsc 2) capture 1, falling/rising edge register comp./rel./capt. reg. high byte comp./rel./capt. reg. low byte compare set register, low byte compare set register, high byte compare clear register, low byte compare clear register, high byte compare set mask register compare clear mask register compare timer control register compare timer rel. reg., high byte compare timer rel. reg., low byte compare timer 1 rel. reg., high byte compare timer 1 rel. reg., low byte timer 2, high byte timer 2, low byte timer 2 control register compare timer 1 control register prescaler control register f7 h cb h ca h a1 h a2 h a3 h a4 h a5 h a6 h e1 h df h de h df h de h cd h cc h c8 h 1) bc h b4 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 01000000 b 3 ) 00 h 00 h 00 h 00 h 00 h 00 h 00 h x1xx0000 b 3) 11010101 b 3) serial channels adcon0 2) pcon 2) s0buf s0con s0rell s0relh s1buf s1con s1rell s1relh a/d converter control register power control register serial channel 0 buffer register serial channel 0 control register serial channel 0 reload reg., low byte serial channel 0 reload reg., high byte serial channel 1 buffer register serial channel 1 control register serial channel 1 reload reg., low byte serial channel 1 reload reg., high byte d8 h 1) 87 h 99 h 98 h 1) aa h ba h 9c h 9b h 9d h bb h 00 h 00 h xx h 3 ) 00 h d9 h xxxxxx11 b 3) xx h 3 ) 01000000 b 3) 00 h xxxxxx11 b 3) watchdog ien0 2) ien1 2) ip0 2) ip1 2) wdtrel wdtl 6) wdth 6) interrupt enable register 0 interrupt enable register 1 interrupt priority register 0 interrupt priority register 1 watchdog timer reload register watchdog timer register, low byte watchdog timer register, high byte a8 h 1) b8 h 1) a9 h b9 h 86 h 84 h 85 h 00 h 00 h 00 h 0x000000 b 3 ) 00 h 00 h 00 h 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate or the location is reserved 4) register is mapped by bit pdir. 5) register is mapped by bit rmap. 6) registers are only readable and cannot be written. table 4 special function registers - functional blocks (cont?) block symbol name address contents after reset
c509-l semiconductor group 32 mul/div unit arcon md0 md1 md2 md3 md4 md5 arithmetic control register multiplication/division register 0 multiplication/division register 1 multiplication/division register 2 multiplication/division register 3 multiplication/division register 4 multiplication/division register 5 ef h e9 h ea h eb h ec h ed h ee h 0xxxxxxx b 3) xx h 3) xx h 3) xx h 3) xx h 3) xx h 3) xx h 3) timer 0 / timer 1 tcon th0 th1 tl0 tl1 tmod prsc 2) timer control register timer 0, high byte timer 1, high byte timer 0, low byte timer 1, low byte timer mode register prescaler control register 88 h 1) 8c h 8d h 8a h 8b h 89 h b4 h 00 h 00 h 00 h 00 h 00 h 00 h 11010101 b 3) ports p0 4) dir0 4) p1 4) dir1 4) p2 4) dir2 4) p3 4) dir3 4) p4 4) dir4 4) p5 4) dir5 4) p6 4) dir6 4) p7 p8 p9 4) dir9 4) port 0 direction register port 0 port 1 direction register port 1 port 2 direction register port 2 port 3 direction register port 3 port 4 direction register port 4 port 5 direction register port 5 port 6 direction register port 6 port 7, analog/digital input port 8, analog/digital input port 9 direction register port 9 80 h 1) 80 h 1) 90 h 1) 90 h 1) a0 h 1) a0 h 1) b0 h 1) b0 h 1) e8 h 1) e8 h 1) f8 h 1) f8 h 1) fa h fa h db h dd h f9 h f9 h ff h ff h ff h ff h ff h ff h ff h ff h ff h ff h ff h ff h ff h ff h -- -- ff h ff h power saving modes pcon power control register 87 h 00 h 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate and the location is reserved 4) register is mapped by bit pdir. 5) register is mapped by bit rmap. table 4 special function registers - functional blocks (cont?) block symbol name address contents after reset
semiconductor group 33 09.96 c509-l table 5 contents of the sfrs, sfrs in numeric order of their addresses addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mapped by 2) 80 h p0 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir= 0 80 h dir0 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 81 h sp 07 h .7 .6 .5 .4 .3 .2 .1 .0 82 h dpl 00 h .7 .6 .5 .4 .3 .2 .1 .0 83 h dph 00 h .7 .6 .5 .4 .3 .2 .1 .0 84 h wdtl 00 h .7 .6 .5 .4 .3 .2 .1 .0 85 h wdth 00 h .7 .6 .5 .4 .3 .2 .1 .0 86 h wdtrel 00 h wpsel .6 .5 .4 .3 .2 .1 .0 87 h pcon 00 h smod pds idls sd gf1 gf0 pde idle 88 h tcon 00 h tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 89 h tmod 00 h gate c/t m1 m0 gate c/t m1 m0 8a h tl0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8b h tl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 8c h th0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8d h th1 00 h .7 .6 .5 .4 .3 .2 .1 .0 90 h p1 ff h t2 clk- out t2ex int2 int6 int5 int4 int3 pdir= 0 90 h dir1 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 91 h xpage 00 h .7 .6 .5 .4 .3 .2 .1 .0 92 h dpsel xxxx. x000 b ?2.1.0 98 h s0con 00 h sm0 sm1 sm20 ren0 tb80 rb80 ti0 ri0 99 h s0buf xx h .7 .6 .5 .4 .3 .2 .1 .0 9a h ien2 xx00. 00x0 b ecr ecs ect ecmp es1 9b h s1con 0100. 0000 b sm s1p sm21 ren1 tb81 rb81 ti1 ri1 9c h s1buf xx h .7 .6 .5 .4 .3 .2 .1 .0 9d h s1rell 00 h .7 .6 .5 .4 .3 .2 .1 .0 a0 h p2 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=0 a0 h dir2 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 a1 h comsetl 00 h .7 .6 .5 .4 .3 .2 .1 .0 1) x means that the value is indeterminate or the location is reserved. 2) sfrs with a comment in this column are mapped registers. shaded registers are bit-addressable special function registers.
c509-l semiconductor group 34 a2 h comseth 00 h .7 .6 .5 .4 .3 .2 .1 .0 a3 h comclrl 00 h .7 .6 .5 .4 .3 .2 .1 .0 a4 h comclrh 00 h .7 .6 .5 .4 .3 .2 .1 .0 a5 h setmsk 00 h .7 .6 .5 .4 .3 .2 .1 .0 a6 h clrmsk 00 h .7 .6 .5 .4 .3 .2 .1 .0 a8 h ien0 00 h eal wdt et2 es0 et1 ex1 et0 ex0 a9 h ip0 00 h owds wdts .5 .4 .3 .2 .1 .0 aa h s0rell d9 h .7 .6 .5 .4 .3 .2 .1 .0 b0 h p3 ff h rd wr t1 t0 int1 int0 txd0 rxd0 pdir=0 b0 h dir3 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 b1 h syscon 1010. xx01 b clkp pmod 1 rmap xmap1 xmap0 b2 h syscon1 3) 00xx. xee0 b eswc swc ea1 ea0 prgen1 prgen0 swap b4 h prsc 1101. 0101 b wdtp s0p t2p1 t2p0 t1p1 t1p0 t0p1 t0p0 b8 h ien1 00 h exen2 swdt ex6 ex5 ex4 ex3 ex2 eadc b9 h ip1 0x00. 0000 b pdir .5 .4 .3 .2 .1 .0 ba h s0relh xxxx. xx11 b .1.0 bb h s1relh xxxx. xx11 b .1.0 bc h ct1con x1xx. 0000 b ct1p ct1f clk12 clk11 clk10 be h ien3 xxxx. 00xx b ect1 ecc1 bf h ircon2 00 h icc17 icc16 icc15 icc14 icc13 icc12 icc11 icc10 pdir=0 bf h eicc1 ff h eicc17 eicc16 eicc15 eicc14 eicc13 eicc12 eicc11 eicc10 pdir=1 c0 h ircon0 00 h exf2 tf2 iex6 iex5 iex4 iex3 iex2 iadc c1 h ccen 00 h cocah3 cocal3 cocah2 cocal2 cocah1 cocal1 cocah0 cocal0 1) x means that the value is indeterminate or the location is reserved. 2) sfrs with a comment in this column are mapped registers. 3) ??means that the value of the bit is defined by the logic level at pin prgen at the rising edge of the reset or hwpd signals . shaded registers are bit-addressable special function registers. table 5 contents of the sfrs, sfrs in numeric order of their addresses (cont?) addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mapped by 2)
semiconductor group 35 09.96 c509-l c2 h ccl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 c3 h cch1 00 h .7 .6 .5 .4 .3 .2 .1 .0 c4 h ccl2 00 h .7 .6 .5 .4 .3 .2 .1 .0 c5 h cch2 00 h .7 .6 .5 .4 .3 .2 .1 .0 c6 h ccl3 00 h .7 .6 .5 .4 .3 .2 .1 .0 c7 h cch3 00 h .7 .6 .5 .4 .3 .2 .1 .0 c8 h t2con 00 h t2ps i3fr i2fr t2r1 t2r0 t2cm t2i1 t2i0 c9 h cc4en 00 h coco en1 coco n2 coco n1 coco n0 coco en0 cocah 4 cocal 4 com0 ca h crcl 00 h .7 .6 .5 .4 .3 .2 .1 .0 cb h crch 00 h .7 .6 .5 .4 .3 .2 .1 .0 cc h tl2 00 h .7 .6 .5 .4 .3 .2 .1 .0 cd h th2 00 h .7 .6 .5 .4 .3 .2 .1 .0 ce h ccl4 00 h .7 .6 .5 .4 .3 .2 .1 .0 cf h cch4 00 h .7 .6 .5 .4 .3 .2 .1 .0 d0 h psw 00 h cy ac f0 rs1 rs0 ov f1 p d1 h ircon1 00 h icmp7 icmp6 icmp5 icmp4 icmp3 icmp2 icmp1 icmp0 d2 h cml0 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 d2 h cc1l0 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 d3 h cmh0 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 d3 h cc1h0 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 d4 h cml1 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 d4 h cc1l1 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 d5 h cmh1 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 d5 h cc1h1 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 d6 h cml2 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 d6 h cc1l2 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 d7 h cmh2 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 d7 h cc1h2 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 d8 h adcon0 00 h bd clk adex bsy adm mx2 mx1 mx0 d9 h addath 00 h .7 (msb) .6 .5 .4 .3 .2 .1 .0 1) x means that the value is indeterminate or the location is reserved. 2) sfrs with a comment in this column are mapped registers. shaded registers are bit-addressable special function registers. table 5 contents of the sfrs, sfrs in numeric order of their addresses (cont?) addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mapped by 2)
c509-l semiconductor group 36 da h addatl 00 h .7 .6 (lsb) db h p7 .7.6.5.4.3.2.1.0 dc h adcon1 0100. 0000 b adcl1 adcl0 adst1 adst0 mx3 mx2 mx1 mx0 dd h p8 .6 .5 .4 .3 .2 .1 .0 de h ctrell 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 de h ct1rell 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 df h ctrelh 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 df h ct1relh 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 e0 h acc 00 h .7 .6 .5 .4 .3 .2 .1 .0 e1 h ctcon 0100. 0000 b t2ps1 ctp icr ics ctf clk2 clk1 clk0 e2 h cml3 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 e2 h cc1l3 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 e3 h cmh3 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 e3 h cc1h3 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 e4 h cml4 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 e4 h cc1l4 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 e5 h cmh4 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 e5 h cc1h4 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 e6 h cml5 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 e6 h cc1l5 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 e7 h cmh5 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 e7 h cc1h5 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 e8 h p4 ff h cm7 cm6 cm5 cm4 cm3 cm2 cm1 cm0 pdir=0 e8 h dir4 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 e9 h md0 xx h .7 .6 .5 .4 .3 .2 .1 .0 ea h md1 xx h .7 .6 .5 .4 .3 .2 .1 .0 eb h md2 xx h .7 .6 .5 .4 .3 .2 .1 .0 ec h md3 xx h .7 .6 .5 .4 .3 .2 .1 .0 ed h md4 xx h .7 .6 .5 .4 .3 .2 .1 .0 1) x means that the value is indeterminate or the location is reserved. 2) sfrs with a comment in this column are mapped registers. shaded registers are bit-addressable special function registers. table 5 contents of the sfrs, sfrs in numeric order of their addresses (cont?) addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mapped by 2)
semiconductor group 37 09.96 c509-l ee h md5 xx h .7 .6 .5 .4 .3 .2 .1 .0 ef h arcon 0xxx. xxxx b mdef mdov slr sc.4 sc.3 sc.2 sc.1 sc.0 f0 h b 00 h .7 .6 .5 .4 .3 .2 .1 .0 f2 h cml6 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 f2 h cc1l6 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 f3 h cmh6 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 f3 h cc1h6 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 f4 h cml7 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 f4 h cc1l7 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 f5 h cmh7 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 f5 h cc1h7 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 f6 h cmen 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 f6 h cc1en 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 f7 h cmsel 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=0 f7 h cafr 00 h .7 .6 .5 .4 .3 .2 .1 .0 rmap=1 f8 h p5 ff h ccm7 ccm6 ccm5 ccm4 ccm3 ccm2 ccm1 ccm0 pdir=0 f8 h dir5 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 f9 h p9 ff h cc17 cc16 cc15 cc14 cc13 cc12 cc11 cc10 pdir=0 f9 h dir9 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 fa h p6 ff h .7 .6. .5 .4 .3 txd1 rxd1 adst pdir=0 fa h dir6 ff h .7 .6 .5 .4 .3 .2 .1 .0 pdir=1 1) x means that the value is indeterminate or the location is reserved. 2) sfrs with a comment in this column are mapped registers. shaded registers are bit-addressable special function registers. table 5 contents of the sfrs, sfrs in numeric order of their addresses (cont?) addr register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mapped by 2)
c509-l semiconductor group 38 digital i/o ports the c509-l allows for digital i/o on 64 lines grouped into 8 bidirectional 8-bit ports. each port bit consists of a latch, an output driver and an input buffer. read and write accesses to the i/o ports p0 through p6 and p9 are performed via their corresponding special function registers p0 to p6 and p9. the port structure of the c509-l is designed to operate either as a quasi-bidirectional port structure, compatible to the standard 8051-family, or as a genuine bidirectional port structure. this port operating mode can be selected by software (setting or clearing the bit pmod in the sfr syscon). the output drivers of port 0 and 2 and the input buffers of port 0 are also used for accessing external memory. in this application, port 0 outputs the low byte of the external memory address, time- multiplexed with the byte being written or read. port 2 outputs the high byte of the external memory address when the address is 16 bits wide. otherwise, the port 2 pins continue emitting the p2 sfr contents. analog input ports ports 7 and 8 are available as input ports only and provide for two functions. when used as digital inputs, the corresponding sfr? p7 and p8 contain the digital value applied to port 7 and port 8 lines. when used for analog inputs the desired analog channel is selected by a three-bit field in sfr adcon0 or a four-bit field in sfr adcon1. of course, it makes no sense to output a value to these input-only ports by writing to the sfr? p7 or p8; this will have no effect. lf a digital value is to be read, the voltage levels are to be held within the input voltage specifications ( v il / v ih ). since p7 and p8 are not bit-addressable registers, all input lines of p7 or p8 are read at the same time by byte instructions. nevertheless, it is possible to use ports 7 and 8 simultaneously for analog and digital input. however, care must be taken that all bits of p7 or p8 that have an undetermined value caused by their analog function are masked.
semiconductor group 39 09.96 c509-l port structure selection after a reset operation of the c509-l, the quasi-bidirectional 8051-compatible port structure is selected. for selection of the bidirectional port structure (cmos) the bit pmod of sfr syscon must be set. because each port pin can be programmed as an input or an output, additionally, after the selection of the bidirectional mode the direction register of the ports must be written (except the analog/digital input ports 7,8). this direction registers are mapped to the port registers. this means, the port register address is equal to its direction register address. figure 16 illustrates the port- and direction register configuration. figure 16 port register, direction register for the access the direction registers a double instruction sequence must be executed. the first instruction has to set bit pdir in sfr ip1. thereafter, a second instruction can read or write the direction registers. pdir will automatically be cleared after the second machine cycle (s2p2) after having been set. for this time, the access to the direction register is enabled and the register can be read or written. further, the double instruction sequence as shown in figure 16 , cannot be interrupted by an interrupt, when the bidirectional port structure is activated (bit pmod in sfr syscon =1) after a reset, the ports are defined as inputs (direction registers default values after reset are set to ff h ). with pmod = 0 (quasi-bidirectional port structure selected), any access to the direction registers has no effect on the port driver circuitries.
c509-l semiconductor group 40 timer / counter 0 and 1 timer/counter 0 and 1 can be used in four operating modes as listed in table 6 : in the ?imer?function (c/t = ?? the register is incremented by a count rate of f osc /6 up to f osc /32. in the ?ounter?function the register is incremented in response to a 1-to-0 transition at its corresponding external input pin (p3.4/t0, p3.5/t1). since it takes two machine cycles to detect a falling edge the max. count rate is f osc /12. external inputs int0 and int1 (p3.2, p3.3) can be programmed to function as a gate to facilitate pulse width measurements. figure 17 illustrates the input clock logic of timer 0/1. figure 17 timer/counter 0 and 1 input clock logic table 6 timer/counter 0 and 1 operating modes mode description tmod input clock m1 m0 internal external (max) 0 8-bit timer/counter with a divide-by-32 prescaler 00 f osc /6x32 up to f osc /48x32 f osc /12x32 1 16-bit timer/counter 0 1 f osc /6 up to f osc / 48 f osc /12 2 8-bit timer/counter with 8-bit autoreload 10 3 timer/counter 0 used as one 8-bit timer/counter and one 8-bit timer timer 1 stops 11 txp1 txp0 prescaler 006 0112 1024 1148
semiconductor group 41 09.96 c509-l compare / capture unit (ccu) the compare/capture unit can be used in all kinds of digital signal generation and event capturing like pulse generation, pulse width modulation, pulse width measuring etc. the ccu consists of three 16-bit timer/counters and an array of several compare or compare/capture registers. a set of control registers is used for flexible adapting of the ccu to a wide variety of applications. figure 18 block diagram of the ccu
c509-l semiconductor group 42 the block diagram in figure 18 shows the general configuration of the ccu. all cc1 to cc4 registers and the crc register are exclusively assigned to timer 2. each of the eight compare registers cm0 through cm7 can either be assigned to timer 2 or to the faster compare timer, e.g. to provide up to 8 pwm output channels. the assignment of the cmx registers - which can be done individually for every single register - is combined with an automatic selection of one of the two possible compare modes. the compare/capture registers cc10 to cc17 and the reload register ct1rel are assigned to compare timer 1 and are mapped to the corresponding registers of the compare timer. the compare function and the reaction of the corresponding outputs depend on the timer/compare register combination. table 7 shows the possible configurations of the ccu and the corresponding compare modes which can be selected. the following sections describe the function of these configurations. table 7 ccu con?urations assigned timer compare register compare output at possible modes timer 2 crch/crcl cch1/ccl1 cch2/ccl2 cch3/ccl3 cch4/ccl4 p1.0/int3 /cc0 p1.1/int4/cc1 p1.2/int5/cc2 p1.3/int6/cc3 p1.4/int2 /cc4 compare mode 0, 1 + reload compare mode 0, 1 / capture compare mode 0, 1 / capture compare mode 0, 1 / capture compare mode 0, 1 / capture) cch4/ccl4 p1.4/int2 /cc4 p5.0/ccm0 to p5.7/ccm7 compare mode 1 ?oncurrent compare cmh0/cml0 to cmh7/cml7 p4.0/cm0 to p4.7/cm7 compare mode 0 comset comclr p5.0/ccm0 to p5.7/ccm7 compare mode 2 compare timer cmh0/cml0 to cmh7/cml7 p4.0/cm0 to p4.7/cm7 compare mode 1 compare timer 1 cc1h0/cc1l0 to cc1h7/cc1l7 p5.0/ccm0 to p5.7/ccm7 compare mode 0 / capture
semiconductor group 43 09.96 c509-l timer 2 operation gated timer mode : in gated timer function, the external input pin p1.7/t2 operates as a gate to the input of timer 2. lf t2 is high, the internal clock input is gated to the timer. t2 = 0 stops the counting procedure.the external gate signal is sampled once every machine cycle. event counter mode : in the event counter function, the timer 2 is incremented in response to a 1- to-0 transition at its corresponding external input pin p1.7/t2. in this function, the external input is sampled every machine cycle. the maximum count rate is 1/12 of the oscillator frequency. reload of timer 2 : two reload modes are selectable: in mode 0, when timer 2 rolls over from all 1? to all 0?, it not only sets tf2 but also causes the timer 2 registers to be loaded with the 16-bit value in the crc register, which is preset by software. in mode 1, a 16-bit reload from the crc register is caused by a negative transition at the correspon- ding input pin p1.5/t2ex. figure 19 block diagram of timer 2
c509-l semiconductor group 44 compare timer operation the compare timers receive its input clock from a programmable prescaler which provides input frequencies, ranging from f osc up to f osc /256. the compare timers are, once started, free-running 16-bit timers, which on overflow are automatically reloaded by the contents of the 16-bit reload registers. the compare timers have - as any other timer in the c509-l - their own interrupt request flags ctf and ct1f. these flags are set when the timer count rolls over from all ones to the reload value. figure 20 shows the block diagram of compare timer and compare timer 1. figure 20 compare timer and compare timer 1 block diagram
semiconductor group 45 09.96 c509-l compare modes the compare function of a timer/register combination operates as follows. the 16-bit value stored in a compare or compare/capture register is compared with the contents of the timer register. lf the count value in the timer register matches the stored value, an appropriate output signal is generated at a corresponding port pin. several timer/compare register combinations are selectable (see table 7 ). in these configurations three cdifferent ompare modes are selectable. compare mode 0 in compare mode 0, upon matching the timer and compare register contents, the output signal changes from low to high. lt goes back to a low level on timer overflow. as long as compare mode 0 is enabled, the appropriate output pin is controlled by the timer circuit only and writing to the port will have no effect. figure 21 shows a functional diagram of a port circuit when used in compare mode 0. the port latch is directly controlled by the timer overflow and compare match signals. the input line from the internal bus and the write-to-latch line of the port latch are disconnected when compare mode 0 is enabled. figure 21 port latch in compare mode 0 compare mode 1 ilf compare mode 1 is enabled (can only be selected for compare registers assigned to timer 2) and the software writes to the appropriate output latch at the port, the new value will not appear at the output pin until the next compare match occurs. thus, it can be choosen whether the output signal has to make a new transition (1-to-0 or 0-to-1, depending on the actual pin-level) or should keep its old value at the time when the timer value matches the stored compare value. in compare mode 1 (see figure 22 ) the port circuit consists of two separate latches. one latch (which acts as a "shadow latch") can be written under software control, but its value will only be transferred to the port latch (and thus to the port pin) when a compare match occurs.
c509-l semiconductor group 46 figure 22 compare function in compare mode 1 compare mode 2 in the compare mode 2 the port 5 pins are under control of compare/capture register cc4, but under control of the compare registers comset and comclr. when a compare match occurs with register comset, a high level appears at the pins of port 5 when the corresponding bits in the mask register setmsk are set. when a compare match occurs with register comclr, a low level appears at the pins of port 5 when the corresponding bits in the mask register clrmsk are set. figure 23 compare function of compare mode 2
semiconductor group 47 09.96 c509-l multiplication / division unit (mdu) this on-chip arithmetic unit of the c509-l provides fast 32-bit division, 16-bit multiplication as well as shift and normalize features. all operations are unsigned integer operations. table 8 describes the five general operations the mdu is able to perform. 1) 1 t cy = 6 clp = 1 machine cycle = 375 ns at 16-mhz oscillator frequency 2) the maximal shift speed is 6 shifts per machine cycle the mdu consists of seven special function registers (md0-md5, arcon) which are used as operand, result, and control registers. the three operation phases are shown in figure 24 . figure 24 operating phases of the mdu table 8 mdu operation characteristics operation result remainder execution time 32bit/16bit 16bit/16bit 16bit x 16bit 32-bit normalize 32-bit shift l/r 32bit 16bit 32bit 16bit 16bit 6 t cy 1) 4 t cy 1) 4 t cy 1) 6 t cy 2) 6 t cy 2)
c509-l semiconductor group 48 for starting an operation, registers md0 to md5 and arcon must be written to in a certain sequence according table 8 and 9. the order the registers are accessed determines the type of the operation. a shift operation is started by a final write operation to sfr arcon. abbrevations : d'end : dividend, 1st operand of division d'or : divisor, 2nd operand of division m'and : multiplicand, 1st operand of multiplication m'or : multiplicator, 2nd operand of multiplication pr : product, result of multiplication rem : remainder quo : quotient, result of division ...l : means, that this byte is the least significant of the 16-bit or 32-bit operand ...h : means, that this byte is the most significant of the 16-bit or 32-bit operand table 9 programming the mdu for multiplication and division operation 32bit/16bit 16bit/16bit 16bit x 16bit first write last write md0 d?ndl md1 d?nd md2 d?nd md3 d?ndh md4 d?rl md5 d?rh md0 d?ndl md1 d?ndh md4 d?rl md5 d?rh md0 m?ndl md4 m?rl md1 m?ndh md5 m?rh first read last read md0 quol md1 quo md2 quo md3 quoh md4 reml md5 remh md0 quol md1 quoh md4 reml md5 remh md0 prl md1 md2 md3 prh table 10 programming athe mdu for a shift or normalize operation operation normalize, shift left, shift right first write last write md0 least significant byte md1 . md2 . md3 most significant byte arcon start of conversion first read last read md0 least significant byte md1 . md2 . md3 most significant byte
semiconductor group 49 09.96 c509-l serial interfaces 0 and 1 the c509-l has two serial interfaces which are functionally nearly identical concerning the asynchronous modes of operation. the two channels are full-duplex, meaning they can transmit and receive simultaneously. the serial channel 0 is completely compatible with the serial channel of the c501 (one synchronous mode, three asynchronous modes). serial channel 1 has the same functionality in its asynchronous modes, but the synchronous mode and the fixed baud rate uart mode is missing. the operating modes of the serial interfaces is illustrated in table 11 . the possible baudrates can be calculated using the formulas given in table 12 . table 11 operating modes of serial interface 0 and 1 serial interface mode s0con s1con description sm0 sm1 sm 0 0 0 0 shift register mode serial data enters and exits through r d0; t d0 outputs the shift clock; 8-bit are transmitted/received (lsb first); fixed baud rate 1 0 1 8-bit uart, variable baud rate 10 bits are transmitted (through t d0) or received (at r d0) 2 1 0 9-bit uart, fixed baud rate 11 bits are transmitted (through t d0) or received (at r d0) 3 1 1 9-bit uart, variable baud rate like mode 2 1 a 0 9-bit uart; variable baud rate 11 bits are transmitted (through t d1) or received (at r d1) b 1 8-bit uart; variable baud rate 10 bits are transmitted (through t d1) or received (at r d1)
c509-l semiconductor group 50 for clarification some terms regarding the difference between "baud rate clock" and "baud rate" should be mentioned. in the asynchronous modes the serial interfaces require a clock rate which is 16 times the baud rate for internal synchronization. therefore, the baud rate generators/timers have to provide a "baud rate clock" (output signal in figure 25 and figure 26 ) to the serial interface which - there divided by 16 - results in the actual "baud rate". further, the abrevation f osc refers to the oscillator frequency (crystal or external clock operation). the variable baud rates for modes 1 and 3 of the serial interface 0 can be derived from either timer 1 or a decdicated baud rate generator (see figure 25 ). the variable baud rates for modes a and b of the serial interface 1 are derived from a decdicated baud rate generator as shown in figure 26 . figure 25 serial interface 0 : baud rate generation configuration figure 26 serial interface 1 : baud rate generator configuration
semiconductor group 51 09.96 c509-l table 12 below lists the values/formulas for the baud rate calculation of serial interface 0 and 1 with its dependencies of the control bits bd, smod, s0p, and s1p. table 12 serial interface 0 - baud rate dependencies serial interface 0 operating modes active control bits baud rate calculation bd s0p smod s1p mode 0 (shift register) f osc / 6 mode 1 (8-bit uart) mode 3 (9-bit uart) 0 0 or 1 controlled by timer 1 overflow : (2 smod timer 1 overflow rate) / 32 1 0 or 1 0 or 1 controlled by baud rate generator : (2 s0p 2 smod f osc ) / (64 baud rate generator overflow rate) mode 2 (9-bit uart) 0 1 f osc / 32 f osc / 16 mode a (9-bit uart) mode b (8-bit uart) ? or 1(2 s1p f osc ) / (32 baud rate generator overflow rate)
c509-l semiconductor group 52 10-bit a/d converter the c509-l has a high perfomance 10-bit a/d converter ( figure 27 ) with 15 inputs included which uses successive approximation technique for the conversion and uses self calibration mechanisms for reduction and compensation of offset and linearity errors figure 27 a/d converter block diagram
semiconductor group 53 09.96 c509-l the a/d converter provides the following features: 15 multiplexed input channels, which can also be used as digital inputs (port 7, port 8) 10-bit resolution single or continuous conversion mode internal or external start-of-conversion trigger capability programmable conversion and sample clock interrupt request generation after each conversion using successive approximation conversion technique via a capacitor array built-in hidden calibration of offset and linearity errors the a/d converter uses basically three clock signals for operation : the input clock f in (=1/t in ), the conversion clock f adc (=1/t adc ) and the sample clock f sc (=1/t sc ). all clock signals are derived from the c509-l system clock f osc which is applied at the xtal pins. the input clock f in is equal to f osc while the conversion clock and the sample clock must be adapted. the conversion clock is limited to a maximum frequency of 2 mhz. the table in figure 28 defines the divider ratio for the conversion and sample clock of each combination of the prescaler bits. figure 28 a/d converter clock selection conversion clock f adc sample clock f sc adcl1 adcl0 f adc adst1 adst0 0 0 adst1 adst0 0 1 adst1 adst0 1 0 adst1 adst0 1 1 0 0 f in / 4 f in / 8 f in / 16 f in / 32 f in / 64 0 1 f in / 8 f in / 16 f in / 32 f in / 64 f in / 128 1 0 f in / 16 f in / 32 f in / 64 f in / 128 f in / 256 1 1 f in / 32 f in / 64 f in / 128 f in / 256 f in / 512
c509-l semiconductor group 54 a/d conversion timing an a/d conversion is internally started by writing into the sfr addatl with dummy data. a write to sfr addatl will start a new conversion even if a conversion is currently in progress. basically, the a/d conversion procedure is divided into three parts : sample phase (t s ), used for sampling the analog input voltage. conversion phase (t co ), used for the real a/d conversion.(includes calibration) write result phase (t wr ), used for writing the conversion result into the addat registers. the total a/d conversion time is defined by t adcc which is the sum of the two phase times t s and t co . the duration of the two phases of an a/d conversion is specified by its specific timing parameter as shown in figure 29 . figure 29 a/d conversion timing conversion clock prescaler adcl1 adcl0 sample clock prescaler adst1 adst0 sample time t s conversion time t co conversiontime t adcc number of cpu cycles 0 0 0 0 0 1 1 0 1 1 8 x t in 16 x t in 32 x t in 64 x t in 40 x t in 48 x t in 56 x t in 72 x t in 104 x t in 8 9 12 17 0 1 0 0 0 1 1 0 1 1 16 x t in 32 x t in 64 x t in 128 x t in 80 x t in 96 x t in 112 x t in 144 x t in 208 x t in 16 18 24 34 1 0 0 0 0 1 1 0 1 1 32 x t in 64 x t in 128 x t in 256 x t in 160 x t in 192 x t in 224 x t in 288 x t in 416 x t in 32 37 48 69 1 1 0 0 0 1 1 0 1 1 64 x t in 128 x t in 256 x t in 512 x t in 320 x t in 384 x t in 448 x t in 576 x t in 832 x t in 64 74 96 138
semiconductor group 55 09.96 c509-l interrupt system the c509-l provides 19 interrupt sources with four priority levels. 12 interrupts can be generated by the on-chip peripherals and 7 interrupts may be triggered externally. in the c509-l the 19 interrupt sources are combined to six groups of three or four interrupt sources. each interrupt group can be programmed to one of the four interrupt priority levels. figure 30 to 33 give a general overview of the interrupt sources and illustrate the interrupt request and control flags. figure 30 interrupt request sources (part 1)
c509-l semiconductor group 56 figure 31 interrupt request sources (part 2)
semiconductor group 57 09.96 c509-l figure 32 interrupt request sources (part 3)
c509-l semiconductor group 58 figure 33 interrupt request sources (part 4)
semiconductor group 59 09.96 c509-l table 13 interrupt sources and their corresponding interrupt vectors interrupt source interrupt vector address interrupt request flags external interrupt 0 0003 h ie0 timer 0 overflow 000b h tf0 external interrupt 1 0013 h ie1 timer 1 overflow 001b h tf1 serial channel 0 0023 h ri0 / ti0 timer 2 overflow / ext. reload 002b h tf2 / exf2 a/d converter 0043 h iadc external interrupt 2 004b h iex2 external interrupt 3 0053 h iex3 external interrupt 4 005b h iex4 external interrupt 5 0063 h iex5 external interrupt 6 006b h iex6 serial channel 1 0083 h ri1 / ti1 compare match interupt of compare registers cm0-cm7 assigned to timer 2 0093 h icmp0 - icmp7 compare timer overflow 009b h ctf compare match interupt of compare register comset 00a3 h ics compare match interupt of compare register comclr 00ab h icr compare / capture event interrupt 00d3 h icc10 - icc17 compare timer 1 overflow 00db h ct1f
c509-l semiconductor group 60 fail save mechanisms the c509-l offers two on-chip peripherals which monitor the program flow and ensure an automatic "fail-safe" reaction for cases where the controller? hardware fails or the software hangs up: a programmable watchdog timer (wdt) with variable time-out period from 189 microseconds up to approx. 0.79 seconds at 16 mhz. an oscillator watchdog (owd) which monitors the on-chip oscillator and forces the microcontroller into the reset state if the on-chip oscillator fails. programmable watchdog timer the watchdog timer in the c509-l is a 15-bit timer, which is incremented by a count rate of f osc /12 up to f osc /384. for programming of the watchdog timer overflow rate, the upper 7 bit of the watchdog timer can be written. figure 34 shows the block diagram of the watchdog timer unit. figure 34 block diagram of the programmable watchdog timer the watchdog timer can be started by software (bit swdt) or by hardware through pin pe /swd, but it cannot be stopped during active mode of the c509-l. if the software fails to refresh the running watchdog timer an internal reset will be initiated on watchdog timer overflow. for refreshing of the watchdog timer the content of the sfr wdtrel is transferred to the upper 7-bit of the watchdog timer. the refresh sequence consists of two consecutive instructions which set the bits wdt and swdt each. the reset cause (external reset or reset caused by the watchdog) can be examined by software (flag wdts). it must be noted, however, that the watchdog timer is halted during the idle mode and power down mode of the processor.
semiconductor group 61 09.96 c509-l oscillator watchdog the oscillator watchdog of the c509-l serves for three functions : monitoring of the on-chip oscillator's function. the watchdog supervises the on-chip oscillator's frequency; if it is lower than the frequency of the auxiliary rc oscillator in the watchdog unit, the internal clock is supplied by the rc oscillator and the device is brought into reset; if the failure condition disappears (i.e. the on- chip oscillator has a higher frequency than the rc oscillator), the part executes a final reset phase of appr. 0.5 ms in order to allow the oscillatior to stabilize; then the oscillator watchdog reset is released and the part starts program execution again. restart from the hardware power down mode. if the hardware power down mode is terminated the oscillator watchdog has to control the correct start-up of the on-chip oscillator and to restart the program. the oscillator watchdog function is only part of the complete hardware power down sequence; however, the watchdog works identically to the monitoring function. fast internal reset after power-on. in this function the oscillator watchdog unit provides a clock supply for the reset before the on- chip oscillator has started. in this case the oscillator watchdog unit also works identically to the monitoring function. figure 35 block diagram of the oscillator watchdog
c509-l semiconductor group 62 power saving modes the c509-l provides three power saving modes in which power consumption can be significantly reduced. idle mode the cpu is gated off from the oscillator. all peripherals are still provided with the clock and are able to work. power down mode the operation of the c509-l is completely stopped and the oscillator is turned off. this mode is used to save the contents of the internal ram with a very low standby current. power down mode can be entered by software or by hardware (pin hwpd ). slow-down mode the controller keeps up the full operating functionality, but its normal clock frequency is internally divided by eight. this slows down all parts of the controller, the cpu and all peripherals, to 1/8 th of their normal operating frequency. slowing down the frequency greatly reduces power consumption. table 14 gives a general overview of the entry and exit procedures of the power saving modes. in the power down mode of operation, v cc can be reduced to minimize power consumption. it must be ensured, however, that v cc is not reduced before the power down mode is invoked, and that v cc is restored to its normal operating level, before the power down mode is terminated. if e.g. the idle mode is left through an interrupt, the microcontroller state (cpu, ports, peripherals) remains preserved. if a power saving mode is left by a hardware reset, the microcontroller state is disturbed and replaced by the reset state of the c509-l. table 14 power saving modes overview mode entering 2-instruction example leaving by remarks idle mode orl pcon, #01h orl pcon, #20h ocurrence of an interrupt from a peripheral unit cpu clock is stopped; cpu maintains their data; peripheral units are active (if enabled) and provided with clock hardware reset software power-down mode hardware power-down mode orl pcon, #02h orl pcon, #40h hardware reset oscillator is stopped; contents of on-chip ram and sfr? are maintained; low level at pin hwpd high level at pin hwpd slow down mode orl pcon,#10h anl pcon,#0efh or hardware reset oscillator frequency is reduced to 1/8 of its nominal frequency
semiconductor group 63 09.96 c509-l absolute maximum ratings ambient temperature under bias ( t a ) ......................................................... ?40 to 110 c storage temperature ( t stg ) .......................................................................... ?65 c to 150 c voltage on v cc pins with respect to ground ( v ss ) ....................................... ?0.5 v to 6.5 v voltage on any pin with respect to ground ( v ss ) ......................................... ?0.5 v to v cc +0.5 v input current on any pin during overload condition..................................... ?10 ma to 10 ma absolute sum of all input currents during overload condition ..................... i 100 ma i power dissipation........................................................................................ 1 w note: stresses above those listed under ?bsolute maximum ratings?may cause permanent damage of the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for longer periods may affect device reliability. during overload conditions ( v in > v cc or v in < v ss ) the voltage on v cc pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. dc characteristics v cc = 5 v + 10%, ?15%; v ss = 0 v t a = 0 to 70 c for the sab-c509 t a = ?40 to 85 c for the saf-c509 parameter symbol limit values unit test condition min. max. input low voltage (except ea , reset , hwpd ) v il ?0.5 0.2 v cc ? 0.1 v input low voltage (ea ) v il1 ?0.5 0.2 v cc ? 0.3 v input low voltage (hwpd , reset ) v il2 ?0.5 0.2 v cc + 0.1 v input low voltage (cmos) (ports 0 - 9) v ilc ?0.5 0.3 v cc v input high voltage (except reset , xtal2 and hwpd v ih 0.2 v cc + 0.9 v cc + 0.5 v input high voltage to xtal2 v ih1 0.7 v cc v cc + 0.5 v input high voltage to reset and hwpd v ih2 0.6 v cc v cc + 0.5 v input high voltage (cmos) (ports 0 - 9) v ihc 0.7 v cc v cc + 0.5 v cmos input hysteresis (ports 1, 3 to 9) v ihys 0.1 v
c509-l semiconductor group 64 output low voltage (ports 1, 2, 3, 4, 5, 6, 9) v ol 0.45 v i ol = 1.6 ma 1) output low voltage (port 0, ale, psen /rdf , ro ) v ol1 0.45 v i ol = 3.2ma 1) output high voltage (ports 1, 2, 3, 4, 5, 6, 9) v oh 2.4 0.9 v cc v v i oh = ?0 m a i oh = ?0 m a output high voltage (port 0 in external bus mode, ale, psen /rdf , ro ) v oh1 2.4 0.9 v cc v v i oh = ?00 m a 2) i oh = ?0 m a 2) output high voltage (cmos) (ports 1, 2, 3, 4, 5, 6, 9) v ohc 0.9 v cc ? i oh = ?00 m a logic input low current (ports 1, 2, 3, 4, 5, 6, 9) i il ?10 ?70 m a v in = 0.45 v logical 1-to-0 transition current (ports 1, 2, 3, 4, 5, 6, 9) i tl ?65 ? 650 m a v in = 2 v input leakage current 7) (port 0, 7, 8, hwpd ) (port 0 in cmos) i li 100 na 0.45 < v in < v cc 150 na 0.45 < v in < v cc t a > 100 o c input leakage current (ea , prgen) (ports 1, 2, 3, 4, 5, 6, 9 in cmos) i lic 1 m a 0.45 < v in < v cc input low current to reset for reset i li2 ?10 ?00 m a v in = 0.45 v input low current (xtal2) i li3 15 m a v in = 0.45 v input low current (pe /swd, owe) i li4 20 m a v in = 0.45 v pin capacitance c io ?0pf f c = 1 mhz t a = 25 o c overload current i ov 5ma 10) 11) parameter symbol limit values unit test condition min. max.
semiconductor group 65 09.96 c509-l notes : 1) capacitive loading on ports 0 and 2 may cause spurious noise pulses to be superimposed on the v ol of ale and port 1, 3, 4, 5, 6, and 9. the noise is due to external bus capacitance discharging into the port 0 and port 2 pins when these pins make 1-to-0 transitions during bus operation. in the worst case (capacitive loading > 100 pf), the noise pulse on ale line may exceed 0.8 v. in such cases it may be desirable to qualify ale with a schmitt-trigger, or use an address latch with a schmitt-trigger strobe input. 2) capacitive loading on ports 0 and 2 may cause the v oh on ale and psen/rdf to momentarily fall below the 0.9 v cc specification when the address lines are stabilizing. 3) i pd (power down mode) is measured under following conditions: ea = reset = v cc ; port0 = port7 = port8 = v cc ; xtal1 = n.c.; xtal2 = v ss ; pe/ swd = owe = v ss ; hwdp = v cc ; v aref = v cc ; v agnd = v ss ; all other pins are disconnected. hardware power down mode current ( i pd ) is measured with owe = v cc or v ss . 4) i cc (active mode) is measured with: xtal2 driven with t r / t f = 5 ns , v il = v ss + 0.5 v, v ih = v cc ?0.5 v; xtal1 = n.c.; ea = pe /swd= v cc ; port0 = port7 = port8 = v cc ; hwpd = v cc ; reset = v ss ; all other pins are disconnected. i cc would be slightly higher if a crystal oscillator is used. 5) i cc (idle mode) is measured with all output pins disconnected and with all peripherals disabled; xtal2 driven with t r / t f = 5 ns, v il = v ss + 0.5 v, v ih = v cc ?0.5 v; xtal1 = n.c.; reset = v cc ; hwpd = v cc ; port0 = port7 = port8 = v cc ; ea = pe /swd = v ss ; all other pins are disconnected; 6) i cc (slow down mode) is measured with all output pins disconnected and with all peripherals disabled; xtal2 driven with t r / t f = 5 ns, v il = v ss + 0.5 v, v ih = v cc ?0.5 v; xtal1 = n.c.; reset = v cc ; hwpd = v cc ; port7 = port8 = v cc ; ea = pe /swd = v ss ; all other pins are disconnected; 7) input leakage current for port 0 is measured with reset = v cc . 8) i cc max at other frequencies is given by: active mode:tbd idle mode:tbd where f osc is the oscillator frequency in mhz. i cc values are given in ma and measured at v cc = 5 v. 9) typical power supply current ( i cc typ ) with test conditiones as defined in note 4 and 5 is given by: active mode, 12 mhz :45 ma active mode, 16 mhz :72 ma idle mode, 16 mhz :29 ma 10)overload conditions occur if the standard operating conditions are exeeded, ie. the voltage on any pin exceeds the specified range (i.e. v ov > v cc + 0.5 v or v ov < v ss - 0.5 v). the supply voltage v cc and v ss must remain within the specified limits. the absolute sum of input currents on all port pins may not exceed 50 ma. 11)not 100% tested, guaranteed by design characterization. 12)the typical i cc values are periodically measured at t a = +25 ?c but not 100% tested. parameter symbol limit values unit test condition typ. 12) max. power supply current: c509-l, active mode, 12 mhz 8) c509-l, active mode, 16 mhz 8) c509-l, idle mode, 12 mhz 8) c509-l, idle mode, 16 mhz 8) c509-l, slow down mode, 12 mhz c509-l, slow down mode, 16 mhz c509-l, power down mode i cc i cc i cc i cc i cc i cc i pd 9) 9) 9) 5 tbd tbd tbd tbd tbd tbd 50 ma ma ma ma ma ma m a v cc = 5 v, 4) v cc = 5 v, 4) v cc = 5 v, 5) v cc = 5 v, 5) v cc = 5 v, 6) v cc = 5 v, 6) v cc = 2...5.5
c509-l semiconductor group 66 a/d converter characteristics t a = 0 to 70 c for the sab-c509 t a = ?40 to 85 c for the saf-c509 v cc = 5 v + 10%, ?15%; v ss = 0 v 4 v v aref v cc +0.1 v ; v ss -0.1 v v agnd v ss +0.2 v notes see next page. clock calculation table further timing conditions : t adc min = 500 ns = ccp x clp t in = 1 / f osc = clp t sc = t adc x scp parameter symbol limit values unit test condition min. max. analog input voltage v ain v agnd v aref v 1) sample time t s 8 t in 512 t in 2) see table below conversion time t adcc 48 t in 832 t in 3) see table below total unadjusted error tue 2 lsb 4) internal resistance of reference voltage source r aref t adc / 250 - 0.25 k w t adc in [ns] 5) 6) internal resistance of analog source r asrc t s / 500 - 0.25 k w t s in [ns] 3) 6) adc input capacitance c ain ?0pf 6) conversion clock selection sample clock selection sample time t s conversion time t adcc adcl1 adcl0 prescaler ccp adst1 adst0 prescaler scp 004 00 01 10 11 2 8 x t in 16 x t in 32 x t in 64 x t in 48 x t in 56 x t in 72 x t in 104 x t in 018 00 01 10 11 4 16 x t in 32 x t in 64 x t in 128 x t in 96 x t in 112 x t in 144 x t in 208 x t in 1016 00 01 10 11 8 32 x t in 64 x t in 128 x t in 256 x t in 192 x t in 224 x t in 288 x t in 416 x t in 1132 00 01 10 11 16 64 x t in 128 x t in 256 x t in 512 x t in 384 x t in 448 x t in 576 x t in 832 x t in
semiconductor group 67 09.96 c509-l notes: 1) v ain may exeed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be x000 h or x3ff h , respectively. 2) during the sample time the input capacitance c ain can be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitance to reach their final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. 3) this parameter includes the sample time t s , the time for determining the digital result and the time for the calibration. values for the conversion clock f adc depend on programming and can be taken from the table below. 4) t ue is tested at v aref = 5.0 v, v agnd = 0 v, v cc = 4.9 v. it is guaranteed by design characterization for all other voltages within the defined voltage range. if an overload condition occurs on maximum 2 not selected analog input pins and the absolute sum of input overload currents on all analog input pins does not exceed 10 ma, an additional conversion error of 1/2 lsb is permissible. 5) during the conversion the adc? capacitance must be repeatedly charged or discharged. the internal resistance of the reference source must allow the capacitance to reach their final voltage level within the indicated time. the maximum internal resistance results from the programmed conversion timing. 6) not 100% tested, but guaranteed by design characterization.
c509-l semiconductor group 68 ac characteristics *) interfacing the c509-l to devices with float times up to 20 ns is permissible. this limited bus contention will not cause any damage to port 0 drivers. v cc = 5 v + 10%, ?15%; v ss = 0 v t a = 0 to 70 c for the sab-c509 t a = ?40 to 85 c for the saf-c509 ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) program memory characteristics parameter symbol limit values unit 16-mhz clock duty cycle 0.4 to 0.6 variable clock 1/clp = 3.5 mhz to 16 mhz min. max. min. max. ale pulse width t lhll 48 clp-15 ns address setup to ale t avll 10 tcl hmin -15 ns address hold after ale t llax 10 tcl hmin -15 ns address to valid instruction in t lliv 75 2 clp-50 ns ale to psen /rdf t llpl 10 tcl lmin -15 ns psen /rdf pulse width t plph 73 clp+ tcl hmin -15 ?s psen /rdf to valid instruction in t pliv 38 clp+ tcl hmin -50 ns input instruction hold after psen / rdf t pxix 00?s input instruction float after psen / rdf t pxiz *) 15 tcl lmin -10 ns address valid after psen /rdf t pxav *) 20 tcl lmin -5 ns address to valid instruction in t aviv 95 2 clp+ tcl hmin -55 ns address float to psen /rdf t azpl - 5 - 5 ns
semiconductor group 69 09.96 c509-l external data memory characteristics parameter symbol limit values unit 16-mhz clock duty cycle 0.4 to 0.6 variable clock 1/clp= 3.5 mhz to 16 mhz min. max. min. max. rd pulse width t rlrh 158 3 clp-30 ns wr pulse width t wlwh 158 3 clp-30 ns address hold after ale t llax2 48 clp -15 ns rd to valid data in t rldv 100 2 clp+ tcl hmin -50 ns data hold after rd t rhdx 00ns data float after rd t rhdz 51 clp-12 ns ale to valid data in t lldv 200 4 clp-50 ns address to valid data in t avdv 200 4 clp+ tcl hmin -75 ns ale to wr or rd t llwl 73 103 clp+ tcl lmin -15 clp+ tcl lmin +15 ns address valid to wr t avwl 95 2 clp-30 ns wr or rd high to ale high t whlh 10 40 tcl hmin -15 tcl hmin +15 ns data valid to wr transition t qvwx 5 tcl lmin -20 ns data setup before wr t qvwh 163 3 clp+ tcl lmin -50 ?s data hold after wr t whqx 5 tcl hmin -20 ns address float after rd t rlaz ? 0 ns
c509-l semiconductor group 70 note: the 16 mhz values in the tables are given as an example for a typical duty cycle variation of the oscillator clock from 0.4 to 0.6. external clock drive xtal2 parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/clp = 3.5 to 16 mhz unit min. max. min. max. oscillator period clp 62.5 62.5 62.5 285 ns high time tcl h 25 25 clp-tcl l ns low time tcl l 25 25 clp-tcl h ns rise time t r 10 10 ns fall time t f 10 10 ns oscillator duty cycle dc 0.4 0.6 25 / clp 1 - 25 / clp clock cycle tcl 25 37.5 clp * dc min clp * dc max ns
semiconductor group 71 09.96 c509-l figure 36 program memory read cycle figure 37 data memory read cycle
c509-l semiconductor group 72 figure 38 data memory write cycle figure 39 external clock drive drive xtal2
semiconductor group 73 09.96 c509-l figure 40 ac testing: input, output waveforms figure 41 ac testing: float waveforms figure 42 recommended oscillator circuits for crystal oscillators up to 16 mhz ac inputs during testing are driven at v cc - 0.5 v for a logic ??and 0.45 v for a logic ?? timing measurements are made at v ihmin for a logic ??and v ilmax for a logic ?? for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs and begins to float when a 100 mv change from the loaded v oh / v ol level occurs. i ol / i oh 3 20 ma


▲Up To Search▲   

 
Price & Availability of SAFC509-L

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X