Search found 8 matches
- Thu Dec 06, 2012 4:24 pm
- Forum: C and ASM Programming
- Topic: C-code analog input
- Replies: 6
- Views: 10576
Re: C-code analog input
Okay I will take a look at that, but now I am wondering is it possible to do this because when I looked at the code before it seems like there are some functions and these functions are called upon in a main loop. Is it actually possible to reproduce something like this? Anyway I will have to take a...
- Wed Dec 05, 2012 12:02 pm
- Forum: C and ASM Programming
- Topic: C-code analog input
- Replies: 6
- Views: 10576
Re: C-code analog input
It isnt the keypad from the e-block serie. The project is supposed to be a little keyboard with keys that go from 0 till 9 and I am only allowed to use 1 analog input to recognize them. So my idea was to put a voltage divider behind every key and that I would be able to read this value in the PIC bo...
- Wed Dec 05, 2012 11:52 am
- Forum: C and ASM Programming
- Topic: C-code analog input
- Replies: 6
- Views: 10576
C-code analog input
Hello everyone, For school I am supposed to translate a program I wrote to c-code and put it in a c-block in flowcode and it has to run exactly the same. The problem I am facing is the fact that I need to make a keyboard where each key gives a different voltage to a analog input in the board. This i...
- Thu Oct 11, 2012 4:40 pm
- Forum: C and ASM Programming
- Topic: Output, send Hex to port
- Replies: 9
- Views: 10817
Re: Output, send Hex to port
Thanks you! I think I am able to manage it now!
- Thu Oct 11, 2012 4:16 pm
- Forum: C and ASM Programming
- Topic: Output, send Hex to port
- Replies: 9
- Views: 10817
Re: Output, send Hex to port
For that example I used test[0], I think it shouldn't be that hard though I just need to output FF or any other hex value to let the leds switch On or Off
- Thu Oct 11, 2012 4:00 pm
- Forum: C and ASM Programming
- Topic: Output, send Hex to port
- Replies: 9
- Views: 10817
Re: Output, send Hex to port
The data I have to work with is hexadecimal and goes from 01 to FF. In total I have 8 leds and want them to switch on or off with the hex data. So basicly if I send 01 only the first led will go on with 02 the second etc. If I send 03 I want the first 2 leds to go on all the way until FF. I already ...
- Thu Oct 11, 2012 3:41 pm
- Forum: C and ASM Programming
- Topic: Output, send Hex to port
- Replies: 9
- Views: 10817
Re: Output, send Hex to port
Well the issue is that I am receiving something through a macro which will write it to a string variable.
Now I want to output this string variable to a port just like you did with 0xFF to port B but now it has to use the string.
And the output block's don't accept a string as a variable.
Now I want to output this string variable to a port just like you did with 0xFF to port B but now it has to use the string.
And the output block's don't accept a string as a variable.
- Thu Oct 11, 2012 2:47 pm
- Forum: C and ASM Programming
- Topic: Output, send Hex to port
- Replies: 9
- Views: 10817
Output, send Hex to port
Hello everyone, I am sending udp data from my pc to the E-blocks internet board. The data that I am sending is formatted in Hexadecimal. So 01 mean 1 and ff means 255. Now I want to output this to a E-Blocks LED board, but I don't know how to do this. I tried to put it into a string and use this in ...