Author |
Message |
Topic: 16F88 serial communication PIC to PC |
cchechio
Replies: 1
Views: 3933
|
Forum: General CCS C Discussion Posted: Sun Jan 11, 2009 3:58 pm Subject: 16F88 serial communication PIC to PC |
I have a PIC 16F88 and i have written this code:
#include <16F88.H>
#define RS232_XMIT PIN_B5
#define RS232_RCV PIN_B2
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=RS2 ... |
Topic: led Blink |
cchechio
Replies: 10
Views: 28020
|
Forum: General CCS C Discussion Posted: Fri Dec 26, 2008 3:43 pm Subject: led Blink |
i read the configuration from picKit 2 programmer:
my configuration is:
Device: PIC16F88
UserID: FF FF FF FF
Checksum 6E35
Configuration 3F70 0003
VDD Target:
O Check
X /MCLR
Progra ... |
Topic: led Blink |
cchechio
Replies: 10
Views: 28020
|
Forum: General CCS C Discussion Posted: Fri Dec 26, 2008 2:50 pm Subject: led Blink |
Here, there are how I have connected PIC16F88 :
_____________X--- 1
_____________X--- 2
_____________X--- 3
_____Vpp/MCLR --- 4 PROGRAMMER pickit2
__________GND --- 5
_____________X--- 6
_____ ... |
Topic: led Blink |
cchechio
Replies: 10
Views: 28020
|
Forum: General CCS C Discussion Posted: Fri Dec 26, 2008 12:26 pm Subject: led Blink |
Ok.
but why my led is off.
i have compiled the code.
and click the button "Program the target device"
Where is my error ? |
Topic: led Blink |
cchechio
Replies: 10
Views: 28020
|
Forum: General CCS C Discussion Posted: Fri Dec 26, 2008 10:37 am Subject: led Blink |
PIC16F88 have OSCCON register. |
Topic: led Blink |
cchechio
Replies: 10
Views: 28020
|
Forum: General CCS C Discussion Posted: Fri Dec 26, 2008 8:42 am Subject: led Blink |
I am using mplab and ccs compiler.
i am testing my pic 16f88 and i write a simple led blinking.
here there is the code:
#include <16F88.h>
void main(void) {
#byte OSCCON = 0x60
se ... |
|