So I'm still looking at the hostmot2 uart/pktuart modules
for simple interfacing of microcontrollers for things like
A/D conversion, and have the vhdl end figured out.

The hostmot2 end is going to take some more work,
apparently.  The pktuart module is not a drop-in replacement
for the uart.  Is there an example comp file illustrating
its use, like mesa_uart.comp?  I can keep mucking around
to figure out the extra parameters, but a working example
would be a time saver.

>From hostmot2.h:

int hm2_uart_setup(char *name, int bitrate, rtapi_s32 tx_mode, rtapi_s32 
rx_mode);
int hm2_uart_send(char *name, unsigned char data[], int count);
int hm2_uart_read(char *name, unsigned char data[]);


int hm2_pktuart_setup(char *name, int bitrate, rtapi_s32 tx_mode, rtapi_s32 
rx_mode, int txclear, int rxclear);
int hm2_pktuart_send(char *name,  unsigned char data[], rtapi_u8 *num_frames, 
rtapi_u16 frame_sizes[]);
int hm2_pktuart_read(char *name, unsigned char data[],  rtapi_u8 *num_frames, 
rtapi_u16 *max_frame_length, rtapi_u16 frame_sizes[]);

Thanks again,
-- Ralph
________________________________________
From: Peter C. Wallace [p...@mesanet.com]
Sent: Monday, January 18, 2021 9:25 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Another Mesa vhdl question

...

The UART requires the alternate instance stride (stride 1) set to 0x10
This is done in the top level file (its a awful kludge and means some
typs of modules cannot be combined)

I would suggest using the PKTUART instead as the PKTUART
uses standard instance strides (0= 0x04,1=0x40)

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=04%7C01%7Cralph.stirling%40wallawalla.edu%7Ce3dee653e6b747bbf21208d8bbd61b92%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637465875556492398%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EG2Z3ffyvGv4YYkJBBqtcEmaW2FqztqFe3lHJpwqaBY%3D&reserved=0


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to