View previous topic :: View next topic |
Author |
Message |
gaugeguy
Joined: 05 Apr 2011 Posts: 348
|
|
Posted: Tue Sep 16, 2025 1:17 pm |
|
|
That processor uses PPS (peripheral pin select). Please see the sticky on how to use #pin_select |
|
 |
scanan
Joined: 13 Aug 2004 Posts: 76 Location: Turkey
|
|
Posted: Wed Sep 17, 2025 12:50 am |
|
|
gaugeguy wrote: | That processor uses PPS (peripheral pin select). Please see the sticky on how to use #pin_select |
By using
#pin_select U1TX=PIN_C6
#pin_select U1RX=PIN_C7
problem solved
many thanks _________________ Dr Suleyman CANAN
R&D Electronic Engineer
https://suleymancanan.wordpress.com
Do whatever you do with amateur spirit -
But always feel professional. |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 19954
|
|
Posted: Thu Sep 18, 2025 10:13 am |
|
|
A a comment, this line is wrong:
setup_spi(SPI_SS_DISABLED);
This turns off SPI slave select. It does not disable the SPI |
|
 |
allenhuffman
Joined: 17 Jun 2019 Posts: 638 Location: Des Moines, Iowa, USA
|
|
Posted: Wed Sep 24, 2025 10:45 am |
|
|
I ran into corrupt RS232 output via the ICD debugger on one board which was related to one of the timers. Disabling the timer made the output work. _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Using: 24FJ256GA106, 24EP256GP202 and 24FJ64GA002. |
|
 |
jeremiah
Joined: 20 Jul 2010 Posts: 1400
|
|
Posted: Thu Sep 25, 2025 7:56 am |
|
|
allenhuffman wrote: | I ran into corrupt RS232 output via the ICD debugger on one board which was related to one of the timers. Disabling the timer made the output work. |
That's probably because the ICD serial is a software uart, so you need to add the option "DISABLE_INTS" to your #use rs232 |
|
 |
|