CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 14 matches
CCS Forum Index
Author Message
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Wed Jun 01, 2005 12:13 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
YIIIIIIIIIIIIPPPPPPPPPPPPIIIIIIEEEEEEEEEEEEEEE!!!!

Got it. With 123000 baud at 20MHz.

Everything works fine. Now i can invert.
Thanks to all.



#include<16F876.h> // Standard header ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Mon May 30, 2005 3:14 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
I have noticed that phone reacts if baud is greater than 112k. But the wrong chars are coming in. I think i�m close.
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Mon May 30, 2005 3:03 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
i must use it on the board with IR transceiver on. now i�m using a board with wired comm to nokia. as i explained, wired comm needs no invert. and if it�s not running here with software uart, i don�t ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Mon May 30, 2005 2:25 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
Ok, the protocol is right, cause it works with HW USART. I have put in the fast_io thing. the output_b(0x09) doesn�t matter for communication, it�s only relay reset and LED control. Maybe the Nokia i ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Mon May 30, 2005 1:03 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
OK, PCM programmer. Now I have tested it, like you said, with 20MHz crystal and 109000 baud. With PIC16F876 <--> HYPERTERMINAL putc() and getc() are working fantastic, BUT with communication to ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Sat May 28, 2005 8:53 am   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
oh thank you, PCM programmer for testing this. I will give it a try.
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Fri May 27, 2005 1:53 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
Ok I have PCWH version 3.203!
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Fri May 27, 2005 5:42 am   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
ahmm shift_right out to the pin is right at put_char, cause LSB is first. And in get_char() the bits are shifted left in, so the LSB is the first who is in. I think that is right. I have tried it with ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Thu May 26, 2005 2:28 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
Oh thanks Ttelmah for your code. It looks good. I will try it tomorrow. I know not exactly what you mean with the receive code. Could you be so nice and put an example of an get_char function in here, ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Thu May 26, 2005 12:34 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
This MUST BE the right way of using start and stopbit. You can see here: www.winpicprog.co.uk/pic_tutorial7.htm

The reason i�m not using INVERT in the example above is, I wrote that code for hypert ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Thu May 26, 2005 9:41 am   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
No, no, no. This is not the problem. I must INVERT my output. Let me explain:

The old board I have, is only PIC16f876 communicating wired with Nokia. The software with hardware usart works fine at ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Wed May 25, 2005 5:07 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
No, the problem is, i need 115kbps connection inverted on PIN_C6 and PIN_C7. Because the circuit board is already made. I have realized too late that i need inverted output to control the IR transceiv ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Wed May 25, 2005 4:44 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
Oh sorry the delay_us(24) are wrong, yeah. I mean delay_cycles(24). I have tried this, too.

The reason why I dont use fputc, putc, fgetc, getc, etc.: I have tried all these functio ...
  Topic: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
tyro

Replies: 27
Views: 24140

PostForum: General CCS C Discussion   Posted: Wed May 25, 2005 3:27 pm   Subject: PROBLEMS with SOFTWARE USART ON PIC16F876! PLEASE HELP!
Hello. I have a problem sending and getting BYTES from PIC to Hyperterminal and otherwise with my own SOFTWARE SERIAL functions. With put_char() a byte is only sent right at 9600 bps. with get_char() ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group