[quote=“jonw”]@ Helping hand,Your right I have never used serial communication before,but thats the beauty of getting help here.
I agree baud rate may have been the wrong word…Thanks for you reply[/quote]
Looking at the code you were sharing on the Parallax forum it is apparent that you haven’t done much programming before this either. This is just an observation and in no way meant condescending. Welcome to the world of teaching high speed idiots (computers) what to do.
As somebody, who has started on that same journey over 30 years ago, may I give you some advice? Playing with hardware and microcontrollers is fun. But it can also be very frustrating because you have many possible sources of error at once. Trying to control a Velleman display with a Parallax microcontroller via RS232 includes possible coding problems, wiring problems and possible communication parameter problems.
Do yourself a favor. Stop fiddling with a microcontroller and attached hardware until you have a grasp of programming in general. Since you ultimately want to master that Parallax BASIC Stamp, a very simple BASIC dialect like QBASIC would be a good starting point. Not everything you learn from playing with QBASIC will work on the Stamp, but you will learn all the fundamental things about programming. And you will learn them much faster since QBASIC is an interactive interpreter. It is old MS-DOS command prompt stuff, but that is perfect for this purpose. The fundamental building blocks of loops, conditionals, variables, arrays and subroutines (functions) are similar to most programming languages.
You can download qbasic V1.1 for free here: petesqbsite.com/sections/int … ntro.shtml (unfortunately this only works on 32 bit systems - there is a QB64 somewhere). Find a tutorial that teaches you all about variables, loops, conditionals and so on. In no time you will understand that the “countdown” timer code, you posted on the other forum, literally screams “use a loop”. Your code should look more like this:
[code]SEROUT 5,396,[13,8,82,1,152]
DO
FOR i = 57 TO 48 STEP -1
SEROUT 5,396,[13,1,65,i,(65536 - 79 - i) MOD 256]
SEROUT 5,396,[13,8,83,1,151]
PAUSE 100
NEXT i
LOOP[/code]