Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
86Duino ONE Serial Port Addresses
2020 年 08 月 12 日
19:28:31
jejump
Moderator
Forum Posts: 14
Member Since:
2015 年 02 月 22 日
Offline

What are the default addresses for the three TTL232 ports on the 86D ONE? Are they the same as PC addresses for COM ports (2F8h,3F8h,etc..)?

Thanks,
John

2020 年 08 月 13 日
21:42:53
jejump
Moderator
Forum Posts: 14
Member Since:
2015 年 02 月 22 日
Offline

Maybe an even better question...

Is there in existence, a compiled list of all the 86Duino base addresses for ports like serial, parallel, and others? I have the -EX datasheet, but it doesn't speak specifically about the 86Duino--even though 86Duino is in the title of the file I downloaded (Vortex86EX_A9123_V14_86duino).

Jj

2020 年 08 月 18 日
19:33:12
jejump
Moderator
Forum Posts: 14
Member Since:
2015 年 02 月 22 日
Offline

I figured out that COM1 (3F8h) seems to correspond to TX1/RX1. Don't know about the other two serial ports on this board. I initially had a problem running Microsoft QBASIC using the OPEN"COM1:2400,N,8,1" statement. This was causing me fatal errors. I later went about it using a direct method writing directly to the COM1 port addresses in assembly language and that seems to work, at least as far as COM1 goes. It stands to reason that the other two ports are assigned to addresses that a PC assigns COM2 and COM3. I'll figure that out down the road.

On an off-topic note, does anyone know if replacing the SOM-128-EX module will fix bad ports? I seem to have a GP21 pin that no longer works as an input. It's stuck LOW when reading. Haven't tried it as an output since I discovered it had a problem.

Thanks,
John

2020 年 09 月 10 日
14:09:50
Android_Lin
Moderator
Forum Posts: 228
Member Since:
2014 年 04 月 01 日
Offline

Hi, jejump,

On Vortex86EX CPU, we can get COMn address from I/O address 0x0C00, EX. COM1 address is 0x3F8, COM2 is 0x2F8, COM3 is 0x3E8. As you said, TX1/RX1 is COM1, TX2/RX2 is COM2, and TX3/RX3 is COM3. Finally, we need to switch pin function from GPIO to COM by setting the CROSSBAR registers, see the line 131 to 152 under the below file:
https://github.com/roboard/86Duino/blob/master/hardware/86duino/x86/cores/arduino/HardwareSerial.cpp
(Here the crossbar_ioaddr is 0x0A00, COMn_TX/COMn_RX be defined as line 45 to 50)

After above, we can get TTL COM signal on TXn/RXn pin if operate them like what you said.

2020 年 09 月 10 日
14:29:28
Android_Lin
Moderator
Forum Posts: 228
Member Since:
2014 年 04 月 01 日
Offline

jejump said

On an off-topic note, does anyone know if replacing the SOM-128-EX module will fix bad ports? I seem to have a GP21 pin that no longer works as an input. It's stuck LOW when reading. Haven't tried it as an output since I discovered it had a problem.

Thanks,
John

Try to set it as "pull-up" ex. pinMode(pin_number, PULL_UP), and read it whether is LOW or not.

Forum Timezone: Asia/Taipei

Most Users Ever Online: 229

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

hippy: 9

smeezekitty: 8

lukeross: 8

tomka: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1570

Moderators: 15

Admins: 5

Forum Stats:

Groups: 2

Forums: 11

Topics: 248

Posts: 1114

Newest Members: Ling ChengYU, EROGurnedo, Alfredhak, Davidherie, Nelsonbok, EugeneDut, RobertOwell, LamboSr, petershu, f0rkB0mb

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 228, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 26, jejump: 14, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 1