Author |
Message |
Topic: Converting a int16 to two int8's |
MartinS
Replies: 1
Views: 3941
|
Forum: General CCS C Discussion Posted: Sat Apr 13, 2013 5:55 am Subject: Converting a int16 to two int8's |
Hello
I want to convert a int16 to two int8, but not as usual.
It has to shift the bits like this:
int16 : AAAABBBBCCCCDDDD
1. int8 : AAAACCCC
2. int8 : BBBBDDDD
I hope for a fast answ ... |
Topic: PIC16F628A RS232 PC => PIC doesn´t work |
MartinS
Replies: 10
Views: 16812
|
Forum: General CCS C Discussion Posted: Sat Mar 02, 2013 7:46 am Subject: PIC16F628A RS232 PC => PIC doesn´t work |
Finally i've found the problem. I never thought of checking this, because if i took out the PIC and made a bridge I got a brilliant echo.
On my Max232 adapter i had two LEDs (not in the schematic bec ... |
Topic: PIC16F628A RS232 PC => PIC doesn´t work |
MartinS
Replies: 10
Views: 16812
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2013 4:13 am Subject: PIC16F628A RS232 PC => PIC doesn´t work |
Hi
My compiler version is 4.130. It still don´t works, even with the simple echo putc(getc());. Maybe you find a problem with my schematic. I already tryed a new PIC16F628A but th ... |
Topic: PIC16F628A RS232 PC => PIC doesn´t work |
MartinS
Replies: 10
Views: 16812
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2013 3:32 pm Subject: PIC16F628A RS232 PC => PIC doesn´t work |
Thanks for your information.
But unfortunately, with the ERRORS in the rs232 setup it doesn´t work.
I tried some other code:
...
int is_charakter_ready;
do{
is_charakter_ready = kbhit ... |
Topic: PIC16F628A RS232 PC => PIC doesn´t work |
MartinS
Replies: 10
Views: 16812
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2013 12:57 pm Subject: PIC16F628A RS232 PC => PIC doesn´t work |
Here my fuses and the rs232 setup
#FUSES NOWDT
#FUSES HS
#FUSES NOBROWNOUT
#FUSES NOLVP
#use delay(clock=12000000)
#use rs232(baud=2400,parity=N,uart,bits=8,stream=PC)
... |
Topic: PIC16F628A RS232 PC => PIC doesn´t work |
MartinS
Replies: 10
Views: 16812
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2013 12:20 pm Subject: PIC16F628A RS232 PC => PIC doesn´t work |
Hello
I´m using the PIC16F628A with build-in UART in order to receive data from a PC with Hyperterminal. I can send strings using printf(); to the PC, but my code to flash a Led by hitting an 'A' ... |
|