Hi, I know that somewhere in the Netburner directories there is a document about controlling the pins used by on the 5270 Dev 70 board, I have found it in the past but am now unable to locate it, can anyone tell me in which directory I can find it.
I need to find out how to hold the second Uart RTS signal high.
Thanks in adavance.
Bill Comben
Docs for controlling pin functions
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: Docs for controlling pin functions
See:
http://www.netburner.com/downloads/mod5 ... O-R1p1.pdf
http://www.netburner.com/downloads/mod5 ... ppNote.zip
the lines:
J2[32].function( PINJ2_32_GPIO );
J2[32] = 1;
should do it. The pin is set to GPIO by default so the 1st line is not req'd unless you've reconfigured the pin somewhere else.
http://www.netburner.com/downloads/mod5 ... O-R1p1.pdf
http://www.netburner.com/downloads/mod5 ... ppNote.zip
the lines:
J2[32].function( PINJ2_32_GPIO );
J2[32] = 1;
should do it. The pin is set to GPIO by default so the 1st line is not req'd unless you've reconfigured the pin somewhere else.
Re: Docs for controlling pin functions
Thanks Ridgeglider, exactly what I wanted.
No wonder I couldnt find the correct docs I was looking in the Netburner directories on my PC.
Thanks again, Bill
No wonder I couldnt find the correct docs I was looking in the Netburner directories on my PC.
Thanks again, Bill
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: Docs for controlling pin functions
OK let's make sure we're talking about the same pin. Their are a variety of RTS pins, depending on which UART. See: C:\nburn\MOD5270\include\pinconstant.h
92 23:#define PINJ2_26_URT2_RTS ( 2 ) // Alternate Function 2: UART 2 - Request to Send
118 23:#define PINJ2_32_URT1_RTS ( 3 ) // Primary Function: UART 1 - Request to Send
119 23:#define PINJ2_32_URT2_RTS ( 2 ) // Alternate Function: UART 2 - Request to Send
150 23:#define PINJ2_38_URT0_RTS ( 1 ) // Primary Function: UART 0 - Request to Send
Next: are you looking at the J2 pin or the RS232 pin after the transceiver?
92 23:#define PINJ2_26_URT2_RTS ( 2 ) // Alternate Function 2: UART 2 - Request to Send
118 23:#define PINJ2_32_URT1_RTS ( 3 ) // Primary Function: UART 1 - Request to Send
119 23:#define PINJ2_32_URT2_RTS ( 2 ) // Alternate Function: UART 2 - Request to Send
150 23:#define PINJ2_38_URT0_RTS ( 1 ) // Primary Function: UART 0 - Request to Send
Next: are you looking at the J2 pin or the RS232 pin after the transceiver?
Re: Docs for controlling pin functions
Hi RidgeGlider it was J2 pin 32 Uart 1 RTS, and I am pleased to say that your info was spot on. I am connecting a communicating digital A/C thermostat/humidistat via RS232 and it uses DTR (or in my case RTS) as the positive power source and RXD as the negative for its drivers/receivers.
Thanks again for all you help.
Regards, Bill
Thanks again for all you help.
Regards, Bill