On Wed, 14 Mar 2018, andy pugh wrote:
Date: Wed, 14 Mar 2018 16:43:39 +0000 From: andy pugh <bodge...@gmail.com> Reply-To: EMC developers <emc-developers@lists.sourceforge.net> To: EMC developers <emc-developers@lists.sourceforge.net> Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoderOn 14 March 2018 at 04:38, Th??ng L?? <lethang12...@gmail.com> wrote: unfortunately, channel A use serial interface with ASCII 7bits, i guess i cant use mesa_uart without modify uart.c. Does pktuart allow me to change frames? I was looking at hm2_pktuart_setup function, there is an option "Bit 20..16 Frames received", is this what i need?
As far as I can tell from the regmap file the Mesa UART is fixed at 8 bits. I can't even find pktUART in the regmap to find out if that is different. Looking at the VHDL files both UART and pktUART have a 4-bit field for bit-count, so that rather suggests that there should be a way to set the number of bits to a value other than 7. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." ?? George Fitch, Atlanta Constitution Newspaper, 1916
Typically there would be no issue sending and receiving 7 bit characters with the PacketUART (just mask bit 7 on RX and set it to the line idle (high) state on TX )
Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination.
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers