What is "Base Address" in Simulink Real-Time RS-232/422/485 Setup block?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all:
I'm trying to read from an IMU through COM port on a PC104, in Simulink Real-Time. Since there's no existing block specified for this PC104, the only applicable blocks are those under Simulink Real-Time/RS232/MainBoard/Baseboard Serial Internal blocks/.
Problem is the setup block there requires a "Base Address" (shown below) which is not clearly explained in its help doc.
My question is: is this "Base Address" the address of the COM port? For example, the COM port on my PC104 has address 3F8-3FF, so I will need to use 3F8 as the "Base Address"?
Another question is about the FIFO mode: the IMU I'm using does not seem to have a FIFO, I did notice that there was a "1 deep" FIFO mode, does it essentially mean "No FIFO"?
Any help would be greatly appreciated. Thanks for your time!
0 Commenti
Risposte (1)
Brandon Eidson
il 7 Ott 2016
Hey Chuanzheng,
The "Base Address" refers to the ISA address of the COM port on your target machine. You have to get it from the bios on your target machine. You are somewhat on the right track in that that address will be between 0x3F8 and 0x3FF.
The "1 deep" setting for "FIFO Mode" just means that it is not using a buffer. You should use this if your device does not have a buffer.
3 Commenti
Pech Viden
il 27 Set 2018
Hey Brandon, My target pc com port address is 0x3F8 and 0x2F8(main board). It seems like when I try to fill it with 3F8 or 0x3F8, it does't work. Pls help me out!!
Diego Kuratli
il 5 Ott 2018
Try hex2dec('3f8')
However, I would use the Baseboard block instead. The Baseboard block is already configured for the COM1/2/3/4 standard port addresses and IRQs. Examples are provided in the Help, Simulink Real-Time, Examples.
Vedere anche
Categorie
Scopri di più su Target Computer Setup in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!