Re: input and out put problem
Posted: Mon May 31, 2010 11:10 am
Hello scorpy77.
In what way was your hardware not working as expect?
Did LED's light up at all?
Are you using EB006 programmer?
If you want to compile to Hex, and paste that, I can check your configuration settings are being transfered OK.
I did notice a couple of things with your software.
1) With a target speed of 19660800 Hz, you should use HS and not XT. This can by changed by 'Chip', 'Configure' then 'Switch to expert screen'
2) You will only get a random number when you release switch. The variable is counting in 1's, but it is counting very quickly with switch pressed in, so by the time switch is released it would of added 100's to variable. You will need to change your flowcode so it is not counting all the time the switch is held down (unless you require random numbers of course).
If you get stuck and that is the issue, then I can help you further.
In what way was your hardware not working as expect?
Did LED's light up at all?
Are you using EB006 programmer?
If you want to compile to Hex, and paste that, I can check your configuration settings are being transfered OK.
I did notice a couple of things with your software.
1) With a target speed of 19660800 Hz, you should use HS and not XT. This can by changed by 'Chip', 'Configure' then 'Switch to expert screen'
2) You will only get a random number when you release switch. The variable is counting in 1's, but it is counting very quickly with switch pressed in, so by the time switch is released it would of added 100's to variable. You will need to change your flowcode so it is not counting all the time the switch is held down (unless you require random numbers of course).
If you get stuck and that is the issue, then I can help you further.