Newb question, RS232 or TTL
#1
Posted 26 October 2011 - 08:27 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#2
Posted 27 October 2011 - 03:56 AM
#3
Posted 27 October 2011 - 05:39 AM
I think that pins 1-3 are reserved for RS232 only. You can switch to deploying/debugging over RS232 and this will free up pins 11 & 12.I'm playing with my mini atm, and I decided to use TTL to debug and deploy. This works great, but I was hoping I could use pins 1 to 3 in my code as GPIO while deploying over TTL. Appairently this is not the case.
ATM = At The MomentSorry, but...I suppose that "atm" stands for Netduino mini, and "TTL" for UART at TTL-level...
Hope tis helps,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#4
Posted 27 October 2011 - 05:46 AM
#5
Posted 27 October 2011 - 05:55 AM
Ooooooo - now I can see that being really handy to have access to.Actually, you can use pins 1-3 as GPIO (for pin 3, input only) if you use TTL for deploy/debug. However, they will be -5V/5V+ outputs (from the TTL-RS232 chip), not 0/3V3 outputs. And you'll need to reference them using (Cpu.Pin) casting, pulling their pin #s from the Netduino Mini schematic.
Regards,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#6
Posted 27 October 2011 - 06:27 AM
Ahhh, so it's actually not such a newb-questionAdvanced topic
I was thinking, when using TTL for deployment, I only use 2 pins instead of 3, so it saves 1 pin. Also, my laptop has no serial port and I have a TTL-to-USB-breakout.
The -5V to +5V could be interesting to play with, just as the input port. But not for my current project.
From http://www.netduino....i/schematic.pdf:
Am I correct that they're (cpu.pin)27 to (cpu.pin)29 ?DRXD -> PA27
DTXD -> PA28
DTR -> PA29
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#7
Posted 27 October 2011 - 06:50 AM
Precisely!Am I correct that they're (cpu.pin)27 to (cpu.pin)29 ?
Also, be careful when using pin 29. The "DTR" pin -- (Cpu.Pin)29 -- is checked during boot. If it's active, then your Netduino Mini will go into bootloader mode It's available for your use in code...but only as an advanced hack
BTW, you might notice that you can't create an OutputPort with that pin. .NET MF automatically protects you
Chris
#8
Posted 27 October 2011 - 07:44 AM
Cool! Going to play with it some day, for my current project, I stay at RS232-deployment then. I want to keep as many pins available as possible.Also, be careful when using pin 29. The "DTR" pin -- (Cpu.Pin)29 -- is checked during boot. If it's active, then your Netduino Mini will go into bootloader mode It's available for your use in code...but only as an advanced hack
BTW, you might notice that you can't create an OutputPort with that pin. .NET MF automatically protects you
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#9
Posted 23 July 2012 - 04:04 AM
#10
Posted 23 July 2012 - 08:24 AM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#11
Posted 23 July 2012 - 07:48 PM
I've considered it, but because it outputs -5V to +5V (if I'm correct) I didn't found a good use for it. It is possible though, to drive them that way!
#12
Posted 20 September 2012 - 03:07 AM
If I create an output port as: OutputPort _output = new OutputPort((Cpu.Pin)27, false); or OutputPort _output = new OutputPort((Cpu.Pin)27, true);, a DVM shows that nothing changes on pin 1 or pin 2. DRXD is shown on the schematic as "G3 PA27/PGMD15."
If PA27/DRXD is (Cpu.Pin)27, then what would then be the (Cpu.Pin) identity of PB27/ADO D9?
[Note added: Per a recent thread, PA references PIO controller A multiplexing and PB controller B multiplexing -- pages 31-33 of the ARM document.]
#13
Posted 20 September 2012 - 03:20 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users