Posted: Mon Aug 27, 2018 6:57 pm Post subject: uart and high baud
Hello
I do some communication between ardunio uno and pm532 (rfid) via UART. With uno is connected also lcd 4*40 i2c. I attach my code, maybe it will be useful for someone. So far i did only reading \\\\\\\"version info\\\\\\\" but it is very simple to create some additional frames to read other infos from pm532. But also I have qeustion at the end of my post
Code:
$regfile= \\\\\\\"m328pdef.dat\\\\\\\" $crystal=16000000 $baud=115200 \\\\\\\' use baud rate $hwstack=32 \\\\\\\' default use 32 for the hardware stack $swstack=10 \\\\\\\' default use 10 for the SW stack $framesize=40 \\\\\\\' default use 40 for the frame space
It works, well at least for me
The qestion: as you see there is very high baud because it is needed by pm532. When I use an interrupt Urxc then I have any problem to read frames from pm532. But such construction (all declaraion the same except Urxc interrupt):
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum