Microtronics PIC Lab-II User Manual Download Page 4

Microtronics Pakistan | www.electronicspk.com| PIC Lab II Manual  [4] 

 

The infrared –Sensor can be enabled or disabled using DIP-Switch 3. 

Push Switches 

There are five push switches available on board. These switches have all 10K pull up resistors and will be 
active low. Therefore when switch is not pressed the associated microcontroller pin will read a logical high 
or 1. when switch is pressed, it connects the pin to ground thereby giving a Low state or logical 0. 

The switches are named as SW3—SW7 

The PORT Pins connected to these switches is as below: 

Reset Switch (MCLR) 

Reset switch is located on the right hand corner and labeled as RST. When pressed the switch gives a logi-
cal 0 to MCLR pin of microcontroller, which is reset, and starts the software from beginning. All RAM data 
is cleared. EEPROM is preserved. Timers are cleared. The Reset switch is specially useful, for boot-loader 
programming.  

I2C EEPROM (PORTC.3, PORTC.4) 

I2C communication bus is very commonly used in electronics devices. More and more devices are coming 
up with I2C protocol support. The board contains an EEPROM Chip, (24c08) which is 8K EEPROM. This 
chip is attached to microcontroller using PORTC.3 and PORTC.4. The 40 pin, PICs have these pins at-
tached to internal hardware of I2C communication. PORTC.3 is SCL and PORTC.4 is SDA. Due to built in 
I2C communication hardware, the software overhead is very much reduced. 

The I2C bus contains 10K pull-ups on both SDA and SCL pins. 

EEPROM is placed on an 8 pin base, it can be removed and another one inserted, if more memory is re-
quired. The EEPROMs have three address pins, which can be used to connect many more EEPROMs in 
parallel. The board has however given this a permanent address of 000 . The I2C code for EEPROM is 
1010. next three bits would be EEPROM chip address, and last bit is direction. Therefore the complete ad-
dress to write on EEPROM would be: 1010 000 0 and to read it would be : 1010 000 1  

I2C BUS (Connector) 

The board also provides an I2C Bus as a connector, which contains connection for SDA and SCL pins 
along with Power for daughter boards. The bus connects directly to PORTC.3 and PORTC.4 which are 
hardware driven I2C pins. Keep it in mind that these pins have associated 10K pull up resistors already at-
tached. In case these pins are being used for some other application this fact must be kept in mind. 

USART (PORTC.6, PORTC.7) 

The board contains a standard universal Serial Asynchronous receiver and transmitter. Many devices use 
this protocol to communicate with other devices. The communication is hardware independent, and just 
needs two wires, on for transmission and one for receiving data. PCs and some other devices, use a level 
translator, to redefine the standard signals for logical 0 and 1. this is done so, to minimize noise interference 
as well as prolong communication distance. To use these signals, they must be converted back to TTL level 
logic. The PIC-Lab-II board contains Rs-232 level converter which converts these signals to TTL level, and  
to transmission levels while sending data. Most PIC microcontrollers contain an internal hardware to man-
age this communication, so that software development becomes easy. PORTC.6 and PORTC.7 are config-

Switch 

PORT Pin 

Comments 

SW3 

PORTE.0 

DIP-Switch 4 to enable / disable 

SW4 

PORTE.1 

DIP-Switch 5 to enable / disable 

SW5 

PORTB.0 

PORTB.0 is also external interrupt, DIP SW-6 

SW6 

PORTE.2 

Dip Switch 7 to enable / disable 

SW7 

PORTA.4 

PORTA.4 is also external clock input for timer 0. 
DOP Switch SW 8 to enable/disable 

Summary of Contents for PIC Lab-II

Page 1: ...Microtronics Pakistan www electronicspk com PIC Lab II Manual 1 Microtronics Pakistan PIC Lab II Motherboard User Manual Microtronics Pakistan ...

Page 2: ...oad through the board like motor or LEDs etc make sure that the supply current is appropriate In that case we recommend 9V 12V DC adapter 800mA to 1000mA The adapter must have center pin supplying Positive Reverse polarity is checked however There is a blocking diode which will not allow the reverse polarity to reach the board There is an On OFF switch and a Power ON LED indicator The Voltage regu...

Page 3: ... projects We will talk about the related Switch in appropriate topics LED Indicators PORTC 0 PORTC 7 PIC Lab II has 8 Led indicators connected to PORTC of the microcontroller The LEDs are connected through 220 ohms current limiting resistor and are sourced by the microcontroller Therefore a logical 1 or on state of the microcontroller pin will turn the corresponding LED ON DIP Switch 1 will enable...

Page 4: ...he board has however given this a permanent address of 000 The I2C code for EEPROM is 1010 next three bits would be EEPROM chip address and last bit is direction Therefore the complete ad dress to write on EEPROM would be 1010 000 0 and to read it would be 1010 000 1 I2C BUS Connector The board also provides an I2C Bus as a connector which contains connection for SDA and SCL pins along with Power ...

Page 5: ... we talk about 16F877A it has analog inputs on PORTA and E all these pins are available for projects through PORT headers However we have specially included two connectors from PORTA 0 and PORTA 1 along with power supply on board These three pin connectors can be used directly to any analog device giving upto 5V analog signal Pulse Width Modulation Connector PORTC 2 Pulse Width modulation is a com...

Page 6: ...r might use RB3 RB6 and RB7 so your application must not be using them at least at the time of programming the pins should be free By default these pins are free on board If you are connecting an external board just remove the connector Keep the system power on while programming as the programmers can give only small amount of power which is enough for microcontroller but not for the entire board ...

Page 7: ... OUT 9 T1 OUT 14 T2 OUT 7 C1 1 C1 3 C2 4 C2 5 U3 MAX232 C5 10u C6 10u C7 10u C8 10u VDD VDD T2OUT T2OUT R2IN R2IN RC7 RC6 R1IN T1OUT T1OUT 1 2 3 4 5 6 7 8 9 10 J2 PORTB 1 2 3 4 5 6 7 8 9 10 J3 PORTC 1 2 3 4 5 6 7 8 9 10 J4 PORTD RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 RC0 RC1 RC2 RC3 RC4 RC5 RC6 RC7 RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7 VDD VDD VDD 1 2 3 4 5 6 7 8 J5 PORTA 1 2 3 4 5 J6 PORTE RA0 RA1 RA2 RA3 RA4...

Reviews: