Programming Microcontrollers In C:Internet Web Sites of Microcontroller Compilers

Internet Web Sites of Microcontroller Compilers The amount of microcontroller software available on the Internet is huge and there are many different example programs. Internet web sites of some popular 8051 family microcontroller compilers and other useful sites are given below. Further Reading The following books and reference manuals are useful in learning to program […]
Continue reading…

 

Microcomputer systems:Timer/Counters

Timer/Counters The 8051 and AT89C2051 contain two timer/counters known as timer/counter 0 and timer/counter 1 (larger members of the 8051 family contain more timers/ counters). These timer/counters can be operated in several different modes depending upon the programming of two registers TCON and TMOD, as shown in Tables 1.2 and 1.3. These registers should be […]
Continue reading…

 

PROGRAMMING PIC MICROCONTROLLERS IN C:ACCESSING THE EEPROM MEMORY

ACCESSING THE EEPROM MEMORY Some PIC microcontrollers (e.g. PIC16F84) have EEPROM memories which can be used to store nonvolatile data. PICC Lite provides instructions for reading and writing to this memory. The EEPROM WRITE command is used to write a data byte to the EEPROM memory. For example, the following command writes 0x2E to address […]
Continue reading…

 

PROGRAMMING PIC MICROCONTROLLERS IN C:FUNCTIONS IN C

FUNCTIONS IN C Almost all programming languages support functions or some similar concepts. Some lan- guages call them subroutines, some call them procedures. Some languages distinguish between functions which return variables and those which do not. In almost all programming languages functions are of two kinds: user functions and built-in functions. User functions are developed […]
Continue reading…

 

PROGRAMMING PIC MICROCONTROLLERS IN C:PROGRAM FLOW CONTROL

PROGRAM FLOW CONTROL The PICC Lite language supports the following flow control commands: The if statement can be used together with the else statement when it is required to execute alternative set of statements when a condition is not satisfied. The general format is: Switch–Case Statement This is another form of flow control where statements […]
Continue reading…