Receiving serial data and sending serial data using PASM
Siri
Posts: 220
I am learning Propeller Assembly so far I seem to have some idea of the logic control but I have no idea how
one send and receive serial data from sensors and other peripherals.Do I need to write a serial periheral interface or can I use
a spin objects if so how.
What I like accomplish is to send serial data to an Serial LCD and also capture serial data sent to the propeller from a serial devise
to a variable to manipulate that data.
Siri
one send and receive serial data from sensors and other peripherals.Do I need to write a serial periheral interface or can I use
a spin objects if so how.
What I like accomplish is to send serial data to an Serial LCD and also capture serial data sent to the propeller from a serial devise
to a variable to manipulate that data.
Siri
Comments
I have used that object in SPIN programs - How do I use it in a Assembly program - How do I call the routines using assembly.
Siri
1. Have pasm write to hub variables and have spin code that polls those variables and sends them to the serial port.
2. Write the serial port code in pasm and embed into your other pasm code
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
While it uses spin to load up the PASM object, you could drive it directly from your own PASM code. Alternately, copy the PASM serial section into your code.
You can use PST (Propeller/Parallax Serial Terminal) on the PC to see what is happening (debug) - switch between PropTool and PST windows. Note Hyperterminal will reset your Prop using DTR!
Postedit: Sorry I misread SPI as serial. Please ignore.
Post Edited (Cluso99) : 9/5/2008 12:57:32 AM GMT
Siri