The 8051 Micro
The 8051 Microcontroller

US$82.00

The 8051 Micro: Architecture, Programming & Applications
The 8051 Microcontroller : Architecture, Programming, and Applications

US$29.95

C and the 8051:
Building Efficient Applications








C & the 8051: Building Efficient Applications

US$65.00

C 
 and the 8051 : Hardware, Modular Programming, and Multitasking








C and the 8051: Hardware, Modular Programming, and Multitasking

US$34.95

uP & uC Fundamentals










uP & uC Fundamentals: The 8085/8051 Hardware and Software
US$90.00

Programming and
 Customizing the 8051 Microcontroller








Programming and Customizing the 8051 Microcontroller
US$31.96

blitzlogic










        APPLICATION #2 TWO 7 SEGMENT LEDs & SWITCHES INTERFACE  

Since we can source a maximum of 20mA per pin for PORT P1 and total max- imum current from PORT P1 is 80mA, hence we can use PORT P1 to drive LED display directly. Below shows the circuit where 2 common cathode 7-SEG LEDs are connected to PORT P1 with 120 Ohms current limiting resistors. The same segment of the two LEDs are tied in parallel to P1. Q1 and Q2 are activated by logic high on PA0 and PA1 which switch on ground to the respective common cathode pins. PA2 and PA3 pin are use to read the inputs S1 or S2 switches.

 Low Cost C Compiler ?     8051 ANSI C from SPJ, India ~ US$274.95  

1) For SPJ 8051 C, the following code, 7seg_spj.c
2) For KEIL 8051 C, the following code, 7seg_89.c
demonstrate how to drive two 7-segment LEDs. The program first display digits on the Left LEDs and counts from 0 to 9 with a delay of 1 second between each digit. Then it switches to the Right LED and repeats the same tasks and then the whole sequence is repeated all over again from the beginning.

www.goto.com  Search made simple.
 Airline Ticket   Cars   Computers 
 Furniture   Mortgage   Music 
 Shopping   Stocks   Weight Loss 
   

Navigation Bar

BLITZLOGIC SDN. BHD.
tech_support@blitzlogic.com