DDCMP and 68302

Does anyone know anything about DDCMP and the 68302 chip. We have some sof tware that uses it in asynchronous mode over RS485 and we want to see if we can emulate the DDCMP behaviour on another product without the 68302 micro so that we can communicate with the existing product but from a new device with a different microprocessor.

The 68302 manual says that in asynch mode when it's looking for the start o f a message that it looks for one of SOH, ENQ or DLE characters. Since the se characters can occur within a message, merely searching for one of these characters isn't sufficient and it must be using a timeout as well but the 68000 manual doesn't say anything about that.

Does anyone know if it's possible to emulate DDCMP on a micro using an ordi nary uart?

Reply to
gp.kiwi
Loading thread data ...

The spec (or a version of it) appears to be here:

formatting link

Page 34 talks about framing the packets on an asynchronous links. The general gist is that once the start character is found (SOH, ENQ, DLE) is found the packet will follow a fixed format.

If you find a start character the middle of a packet (for example), then the CRC will fail and you're required to follow the protocol and request a retransmit or other remedy to resynchronise.

This should be relatively straight forward to implement with almost any async serial interface.

--
Cheers, 
Chris.
Reply to
Chris

ok, thanks.

Reply to
gp.kiwi

I would probably implement that as a simple state machine. Scan for a start of frame and start again if you see another within the frame. However, depending on the frame format, controls such as sof are often escaped if they appear within the data portion of the frame...

Chris

Reply to
Chris

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.