Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PRO**TEUS, VTERM and PIC USART Problem.

Status
Not open for further replies.

neuralc

Full Member level 4
Joined
Nov 6, 2001
Messages
236
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,298
Activity points
2,202
compim & vterm

Hi all,

I'm trying to simulate a program with a PIC->PC communication. For that I use Pro**Teus with the VTERM module connected to the RX/TX of the 16F870 USART.

For error checking I'm using the 9th bit of the usart to send the EVEN parity bit. After simulate on MPLAB I see that the bit TX9D(9th bit) is correctly set (When we need it to get EVEN number of 1's) but on PRO**TEUS (new version SP6) the bit never change the value, neither set it on the code the value it's always zero.

So, for everybody that want simulates this functionality be careful.

NeuralC
 

compim vterm even

send me a copy of the problem

put in in a folder called problem
within sp6 in fm1

and let me know then i can see further the problem

perhaps will be easy when i see dsn....
 

ok
after reading again
i see the problem

you cannot affix parity to the data stream

this isnt common practice

parity must be its own
bit {port pin}
so parity non parity toggle can be preserved

in sync
or youll get buffer under / overruns
and funny results

i think your daft to use this

but i also think you need to set the compim to 9 bit even parity 1 start and youll need a stop bit {port pin} also
to locate the 8 th data bit in the stream for stacking....


so parity flop can easily be read in sync

and baud sync status preserved

so i think it will be an incorrect setting somewhere

serial can be a nightmare
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top