.: EMICROS :.  Embedded Micro Software
Home CAN232 CANUSB I2C232 I2CUSB CanWiser Learn C
Add your text here
Contact

Email : info@emicros.com

Ordering Information

.: Ordering using our PayPal powered shopping cart (PayPal account not required).

CAN232 : $79
CANUSB : $89
I2C232 : $79

I2CUSB : $89

Click here to View Cart and check out.

 

 

 

 

One of the simplest projects to learn about controlling a single bit on an output port is to turn an LED on and off. The PicWiser has a red LED connect to pin 13 of the 16F876. This pin is known as PORTC pin #2 and in order to reference it in a C program we use the designator RC2. The following schematic shows the connection.

The LED (D1) is connected to RC2 using a resistor (R1) to limit the current. R1 on PicWiser is 10kohm but any value from 1000 (1k) to 10,000 (10k) is sufficient to turn the LED on. Note that the lower the resistor value, the brighter the LED will be.

 

 

 
 
Copyright 2010 Embedded Micro Software. All rights reserved