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 15 matches
CCS Forum Index
Author Message
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Sun Mar 01, 2015 7:48 am   Subject: Hardware uart parity
Absolutely my fault. I am sorry to all.

http://postimg.org/image/nui3kdkft/

I was too lazy to check with hardware.

http://postimg.org/image/jl7q3bxnx/

In that line of thoughts, i suggest ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Sun Mar 01, 2015 4:00 am   Subject: Hardware uart parity
you are right, yes .....

Ttelmah !!!

I found the bug. Parity works ok, but it is confused!
Parity=EVEN mean Parity=ODD.

After
#use rs232(uart2, baud=9600, bits =8, parity=o, stop =1, s ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Sun Mar 01, 2015 2:18 am   Subject: Hardware uart parity
Yes, thanks, i do that. I found this :

.................... void out_spi2(char s){
.................... spi_write2(s);
*
03A0: MOVF SSP2BUF,W
03A2: MOVFF ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Sat Feb 28, 2015 12:06 pm   Subject: Hardware uart parity
I can receive 9 bits and send 8bits with same PIC hw uart. There is separate TXSTA.TX9 and RCSTA.RX9 bits.
I just wanted to see how looks C code and learn something. I found some benefits and little ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Sat Feb 28, 2015 5:51 am   Subject: Hardware uart parity
With my minor XP here, i can point what puzzle me in these #use statements.
I had no success to run a hardware spi or uarts on 18F23K22 with them.

1.
#USE SPI (options)
SPI1 Use the hardware p ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Sat Feb 28, 2015 1:51 am   Subject: Hardware uart parity
I give up. I have not enough brain to understand these #use statements. I guess they are amazing for software communication,
but i can't get working hardware peripheral with them.



void out_spi ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 10:01 am   Subject: Hardware uart parity
I will try, but i really like this style Smile



void out_spi(char s){
spi_write2(s);
}

///////////////////////

setup_spi2(SPI_MASTER|SPI_MODE_2|SPI_CLK_D ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 9:23 am   Subject: Hardware uart parity
Ttelmah, i'm sorry:

The definition of the RS232_ERRORS is as follows:

No UART:
· Bit 7 is 9th bit for 9 bit data mode (get and put).
· Bit 6 set to one indicates a put failed in float hi ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 8:49 am   Subject: Hardware uart parity
[quote= ...
As a comment though, just put a jumper on JP2 of the display. This turns parity off.

Makes everything a lot simpler.[/quote]

I have to write 1kg paper (in German) with explanations ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 8:43 am   Subject: Hardware uart parity
Like my cat ,curiosity got the better of me, ...

Jay


http://oi61.tinypic.com/200p5qu.jpg
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 8:11 am   Subject: Hardware uart parity
Hi RF,
The device surely uses 9600 8-ODD-1. I solved this task for one LCD to overlay in 2010. I did that with hw uart to receive and software uart to transmit with PIC16F88. And ofcourse, i set r ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Fri Feb 27, 2015 3:43 am   Subject: Hardware uart parity
i see ...
this 90% answers my question, thank you. I came up with similar solution


void out_chr( char c ) {
TX9D2 = getParity(c); // however calculated
while ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Thu Feb 26, 2015 11:05 pm   Subject: Hardware uart parity
h**p://www.wincor-nixdorf.com/internet/cae/servlet/contentblob/49002/publicationFile/76133/BA63_Display_Operating_Manual_english.pdf

The jumpers sets on page 18 do not depend on me.
In fact i did ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Thu Feb 26, 2015 3:00 pm   Subject: Hardware uart parity
thanks!
temtronic, the device is Wincor Nixdorf LCD, controlled by VT100 (which i haven't seen from 3.14 decades :))
I need to capture 2 displays, interpret the commands and send the data to DVR as ...
  Topic: Hardware uart parity
fobi

Replies: 31
Views: 46479

PostForum: General CCS C Discussion   Posted: Thu Feb 26, 2015 1:28 pm   Subject: Hardware uart parity
Hello,
I'm new to " C for microcontrollers ". I read what i found about parity in this forum, but it seems not so clear for me.
I know what is PIC and PIC_UART , but i am puzzled from comp ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group