Hello Unregistered ,
Hello, thank you for visiting the picbasic users forum. Just a little note to remind you that, if your have registeted for a user account and you have not logged in and posted a message, unused accounts are deleted from time to time.
We track user account usage. As part of our general maintenaince and to meet the GDPR requirments, we have elected to delete user accounts that are unused.
We define unused as:
NOT haveing ever posted a message on the forum
AND
NOT having logged in for more than 360 days.
If you find that your account is deleted, because of inactivity, you will need to contact the forum administrator to have the account re-instated. email: [email protected]
UsartTX var LatC.6 UsartTX = 1 TXSTA.5 = 0 Framing error is gone on PIC #2 WOOT!
Should I set LatC.6 to 1 when I disable the transmitter? :confused: I thought the pull-ups were supposed to handle that?
so there is the problem TRISC = % 10000000 portc pin 6 is set as an output the latc.6 value is undefined but obviously 0 when tx module is disabled the pin reverts to be an output driven low...
Mainloop is in post #22. Complete code PIC #1: #CONFIG __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_OFF &...
post the code . no point guessing
I'm not setting anything to tri-state, yet. Using TXSTA.5 = 1 / TXSTA.5 = 0 is just preparing myself for when I will use Usart pins in tri-state. I thought I could just turn Usart TX and RX...
yet when tx is disabled the pin is hard driven to logic 0 , explain how disabling tx-module sets the pin to "tristate"
I'm not using tri-state yet, cause for now I have only two PICs talking, and they're not sharing any lines (but I will be the future, hence why I'd like to master enable/disable of transmitter). ...
explain how disabling tx-module sets the pin to "tristate"
I'm not doing anything to it. Should I?
Re: Framing error if I disable transmitter after shift register is empty?
UsartTX var LatC.6
Demon Today, 02:17UsartTX = 1
TXSTA.5 = 0
Framing error is gone on PIC #2
WOOT!