s C505L First 8051 Microcontroller with On-Chip LCD The C505L enhances the C500 family of 8-bit Microcontrollers by a new member which provides on-chip LCD. The device provides 32 KByte of OTP, 512 Bytes of RAM, LCD, an asynchronous/synchronous serial interface and a highly accurate 10-bit ADC with a 6 µs conversion time integrated on-chip. • • • • • • • • Enhanced 8-Bit C500-CPU – fully software/toolset compatible to standard 80C51/80C52 Microcontrollers 300 ns instruction cycle time at 20 MHz CPU clock without clock prescaler Eight 16 Bit datapointers for indirect addressing of program and data memory Supports external address range up to 64 KByte program and data memory Full duplex serial interface with asynchronous and synchronous modes and programmable baudrate generator 32 KByte On-chip OTP memory (C505L-4E only) 256 Byte On-chip RAM 256 Byte On-chip XRAM Typical applications for the C505L are electricity meters, utility meters, intelligent terminals and controllers. This device has several power saving modes, including one in which the on-chip RTC is functioning with a typical power consumption of 50 µA at 3 V. • • • • Five 8-bit and one 6-bit digital I/O ports (Port 5 with 6 bits only) Three 16-bit timers/counters 128-segment LCD controller – 1/4 duty cycle drive – 4 row and 32 column outputs – On-chip programmable reference voltage generation – 20 dedicated LCD output lines (4 rows + 16 columns) – Option to switch 16 LCD output lines for digital I/O (2 sets of 8 lines each) Real-time clock – 47-bit digital clock counter (40 bits readable) – External crystal oscillator of frequency 32.768 KHz required • • • • • • • • • • • Full duplex serial interface with programmable baudrate generator (USART) 10-bit A/D converter with 8 multiplexed inputs 6 µs conversion time Twelve interrupt sources with four priority levels On-chip emulation support logic (Enhanced Hooks) Programmable 15-bit watchdog timer Oscillator watchdog Fast power on reset Power saving modes P-MQFP-80 package Temperature ranges: SAB-C505L TA = 0 to 70°C SAF-C505L TA = –40 to 85°C C505L Block Diagram On-Chip Emulation Support Module Oscillator Watchdog 10-Bit ADC Timer 2 4-Channel PWM XRAM 256 x 8 Port 0 8 Digit. I / O Port 1 8 Analog Inputs / 8 Digit. I / O Port 2 8 Digit. I / O Port 3 2 LCD Outputs / 8 Digit. I / O OTP 32 k x 8 Port 4 8 LCD Outputs / 8 Digit. I / O 128-Segment LCD Control Port 5 6 LCD Outputs / 6 Digit. I / O T0 T1 Watchdog Timer Real-Time Clock RAM 256 x 8 CPU 8-Bit C500-Core USART 8 Datapointers 20 LCD Outputs VAGND VAREF P1.7 / AN7 / T2 P1.6 / AN6 / CLKOUT P1.5 / AN5 / T2EX P1.4 / AN4 P1.3 / AN3 / INT6 / CC3 P1.2 / AN2 / INT5 / CC2 P1.1 / AN1 / INT4 / CC1 P1.0 / AN0 / INT3 / CC0 VSS VCC P0.0 / AD0 P0.1 / AD1 P0.2 / AD2 P0.3 / AD3 P0.4 / AD4 P0.5 / AD5 P0.6 / AD6 P0.7 / AD7 C505L Pin Configuration MCA03691 1 80 75 70 65 61 60 5 55 10 C505L-4E 50 15 45 20 21 25 30 35 41 40 P4.0 / C16 P4.1 / C17 P4.2 / C18 P4.3 / C19 P4.4 / C20 P4.5 / C21 P4.6 / C22 P4.7 / C23 P5.0 / C24 P5.1 / C25 P5.2 / C26 P5.3 / C27 P5.4 / C28 P5.5 / C29 P3.7 / RD P3.6 / WR P3.5 / T1 / C30 P3.4 / T0 / C31 P3.3 / INT1 P3.2 / INT0 R0 R1 R2 R3 C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 P2.0 / AD8 P2.1 / AD9 P2.2 / AD10 P2.3 / AD11 P2.4 / AD12 P2.5 / AD13 P2.6 / AD14 P2.7 / AD15 XTAL3 XTAL4 VCC VSS XTAL1 XTAL2 EA ALE PSEN RESET P3.0 / RxD P3.1 / TxD MCP03692 Published by Semiconductor Group Siemens Aktiengesellschaft Ordering No. B158-H7169-G1-X-7600 Printed in Germany PS 11975. (8541)