Attachments are accessible only for community members.
Anonymous
Not applicable
Feb 08, 2015
09:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 08, 2015
09:05 AM
TX-EN never goes up, Frame Errors in 9bit Mark/Space For some reason I never see the tx-en line go high to enable the tx on the 485 bus. I'm also seeing frame errors when I change from 8N1 to 9 mark/space. Any suggestions? { UART_1_LoadTxConfig(); // half duplex to transmit UART_1_SetTxAddressMode(UART_1_SET_MARK); // MARK and SPACE could be backwards. Datasheet conflicts itself. UART_1_PutChar((char) (nodeid)); UART_1_PutString(payload); UART_1_PutString("\n"); UART_1_PutString("\r"); UART_1_SetTxAddressMode(UART_1_SET_SPACE); do /* wait until transmission complete */ { tmpStat = UART_1_ReadTxStatus(); }while(~tmpStat & UART_1_TX_STS_COMPLETE); // Check the TX_STS_COMPLETE status bit UART_1_LoadRxConfig(); // half duplex to recieve tmpStat = UART_1_RXSTATUS_REG; // Clear the BREAK in the RX Buffer from TX to RX transistion } Thanks Richard
Labels
- Labels:
-
PSoC 5LP
4 Replies
Anonymous
Not applicable
Feb 08, 2015
09:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 08, 2015
09:08 AM
Wow, what happened to my formatting?
Feb 08, 2015
09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 08, 2015
09:19 AM
It would help if you post the project -
“File” Creator
“Create Workspace Bundle”
The forum software has issues. Firefox and Chrome seem to work pretty good.
If using explorer set content to compatibility view.
Regards, Dana.
Anonymous
Not applicable
Feb 08, 2015
09:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 08, 2015
09:49 PM
Ok, I figured out why the TX-EN line was failing to rase. The pin only looked like it was connected to the UART until I moved things around in the design... Grrr.
That leaves the 9 bit frame errors. Anyone have any suggestions were I can look or an example code that uses 9bit Mark/Space? I've at the data sheets but its possible I've missed one that would help.
Thanks
Richard
Attachments are accessible only for community members.
Anonymous
Not applicable
Feb 08, 2015
10:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 08, 2015
10:24 PM