Forum Discussion
Altera_Forum
Honored Contributor
15 years agoUart Problem
Hi everybody, I need to write or read a package to UART. Package like 0xFF 0xFF 0x01 0x04 0x02 0x2B 0x01 0xCC This package or packages like that are needed to be sent to control Dynam...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- T.I don't know how can drive.The UART is enough to read or drive digital servomotors? --- Quote End --- You must refer to servomotor specification in order to know HOW you can drive them. You can have different modes of operation. For example: - positioner: the serial port sends the target position and the drive executes the motion with a predefined profile - trajectory step: the serial port sends trajectory points at fixed intervals and the drive will follow them; the serial port master must take care to generate the correct motion profile - open loop: you directly drive a current value into motor windings; then your system must read position and close the loop to keep motor in position. Depending which mode you are using, you need to operate uart very differently. With a positioner you can simply send and receive data asynchronously, when you need the motor to move, without any precise timing. For other modes you need to operate uart with a timer, using interrupts and possibly dma.