SimpleIDE Terminal won't display test message
cameo23456
Posts: 6
I've set up a Propeller DIP40 on a breadboard, along with an ft232rl circuit based on the Prop Plug for communication. I've connected 100nF bypass capacitors on all VCC sources, as well as 10uF caps on the source regulator. There is also an EEPROM for storing the program, along with a 20pF, 5MHz crystal oscillator as an external clock.
Everything seems to be working fine; the Propeller is successfully detected by Propeller Tool and I can upload programs compiled using both it and SimpleIDE. When I upload the downloadable blinking light Spin program using Propeller Tool, the light blinks as expected, so I don't believe there is an issue with the crystal or the Propeller. However, when I attempt to run the SimpleIDE test program which displays "Hello!!!" in the terminal, nothing will display. I've even tried adding a pause of 2 seconds to wait for the terminal display to load, as well as compiling and running other terminal I/O programs, with no success.
So far, I've tried changing the board type to Generic and changing the baud rate, but those don't work either. For some reason the terminal doesn't seem to respond to anything. I'm using Windows 10, if that changes anything.
Everything seems to be working fine; the Propeller is successfully detected by Propeller Tool and I can upload programs compiled using both it and SimpleIDE. When I upload the downloadable blinking light Spin program using Propeller Tool, the light blinks as expected, so I don't believe there is an issue with the crystal or the Propeller. However, when I attempt to run the SimpleIDE test program which displays "Hello!!!" in the terminal, nothing will display. I've even tried adding a pause of 2 seconds to wait for the terminal display to load, as well as compiling and running other terminal I/O programs, with no success.
So far, I've tried changing the board type to Generic and changing the baud rate, but those don't work either. For some reason the terminal doesn't seem to respond to anything. I'm using Windows 10, if that changes anything.
Comments
I assume you're using C? Sorry but I don't know which clock statements are required for a C program but now that I type this, I imagine SimpleIDE likely adds these statements for you.
Where are the 20pF caps used? I know some microcontrollers require the crystals be used with accompanying caps. The Propeller does not use caps with the crystal.
I'd also suggest placing your "Hello!!!" statement inside a loop so you can be sure you don't miss it. Two seconds is kind of cutting it close. I know I've often missed seeing a message with just a two second delay.
I noticed after reading further that the LED Spin program didn't have any clock statements, so it was probably just using the default internal oscillator. After adding the clock statements and using that clock as a source, the light stopped flashing. I'm going to have to check the external oscillator using a x10 probe tomorrow, with the correct clock statements, and see if it's oscillating at all. I didn't add any extra 20pF caps to the crystal; the crystal itself is rated with a 20pF capacitance.
I tried putting the "Hello!!!" statement inside an infinite while loop, but no luck. I was reading in another forum that the external oscillator circuit within the Propeller is easy to damage; since I received this IC from someone else, I hope that's not the case
Where you uploaded the program, to RAM or to EEPROM ? If to RAM, it is possible that the terminal window toggles the DTR line causing a reset erasing whatever is in the RAM. Try to upload to EEPROM, it should work, unless there is something else (checked the pin numbers and speed for the serial port ?).
It sounds like the PLL circuit if blown. I've done this myself several times.
Without the PLL it's pretty hard to get serial communication to work. I think there are ways to auto detect the baud which would allow a Propeller board to use serial without having an accurate clock but I haven't tried this myself.
Thanks for the support!
I tested the new IC yesterday and the issue was definitely the PLL. I didn't realize the XI/XO and PLL could operate independent of each other.
The old IC is still usable, if I don't need the multiplier
Thanks again
Good deal! Remember those capacitors!