ICC / Propeller Beginner, cannot get terminal to work using printf examples
lurker93
Posts: 7
Hello everyone!
I searched for icc terminal but wasn't able to find an answer to my question.· I want to splash information on the terminal emulator on my ICC software but nothing is ever displayed.· The propeller is on Com 6 of my laptop on a usb port.
Suggestions?
Thanks,
Scott
I searched for icc terminal but wasn't able to find an answer to my question.· I want to splash information on the terminal emulator on my ICC software but nothing is ever displayed.· The propeller is on Com 6 of my laptop on a usb port.
Suggestions?
Thanks,
Scott
Comments
I don't use ICC, so can't help with specifics, but I hope the following is useful: Are you *sure* the Propeller's been programmed correctly (e.g. you've downloaded a simple LED blinker)?
Sorry if that's teaching you to 'suck eggs'.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again
BTW: I type as I'm thinking, so please don't take any offence at my writing style
Scott
Have you included the stdio? (Not sure how to do that, but I guess you are?) I expect you'll need to do that, and maybe tell ICC which pins your Tx/Rx are on too...
Beyond that, I'm not sure if I can help.
Hope that helps though.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again
BTW: I type as I'm thinking, so please don't take any offence at my writing style
#include <stdio.h>
#include <asio.h>
#include <propeller.h>
void BlinkLED(void);
main()
{
asio_init(57600);
while (1)
{
DIRA = 1 << 16;
OUTA ^= DIRA;
msleep(250/2);
OUTA ^= DIRA;
msleep(500/2);
printf("hello world\n");
}
}
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <propeller.h>
Otherwise, to my untrained eye, your code looks OK to me!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.com
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again
BTW: I type as I'm thinking, so please don't take any offence at my writing style
Scott
// richard
ASync IO checked!
Thanks,
Scott
Still not workinig...:-(
-Joe
Try this:
#include <stdio.h>
#include <asio.h>
#include <propeller.h>
void BlinkLED(void);
main()
{
asio_init(57600);
// [noparse][[/noparse]RX] [noparse][[/noparse]TX] [noparse][[/noparse]LED]
DIRA = (0 << 31) | (1 << 30) | (1 << 16); // --->>better coded as: DIRA |= (1 << 16);
while (1)
{
OUTA ^= (1 <<16);
msleep(250/2);
OUTA ^= 1 <<16;
msleep(500/2);
printf("hello world\n");
}
}
Post Edited (cimplex) : 11/8/2008 2:30:05 PM GMT