What is "Base Address" in Simulink Real-Time RS-232/422/485 Setup block?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Brandon Eidson
2016-10-7
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 个评论
Pech Viden
2018-9-27
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
2018-10-5
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!