Search found 11 matches

by pfiff
04 Sep 2006 15:56
Forum: mikroPascal for dsPIC30/33 and PIC24 General
Topic: Bit filtering
Replies: 2
Views: 3647

Sorry wrong forum...

pfiff
by pfiff
01 Sep 2006 09:44
Forum: mikroC General
Topic: Bit filtering
Replies: 8
Views: 3970

Thanks for all replies, they helped me a lot. :D

Thanks pfiff
by pfiff
31 Aug 2006 16:55
Forum: mikroC General
Topic: Bit filtering
Replies: 8
Views: 3970

Bit filtering

Hi people, i hope somebody can help me.. I have a variable called test char test = 0xaa; = 10101010b Now i wrote a function to filter out every bit: for ( i = 0; i < 8; i++) { a = test[i]; if(a == 0) b = 1; else if (a == 1) c=1; } with the debugger i see a isn't the current bit of test. Does anybody...
by pfiff
31 Aug 2006 16:54
Forum: mikroPascal for dsPIC30/33 and PIC24 General
Topic: Bit filtering
Replies: 2
Views: 3647

Bit filtering

Hi people, i hope somebody can help me.. I have a variable called test char test = 0xaa; = 10101010b Now i wrote a function to filter out every bit: for ( i = 0; i < 8; i++) { a = test[i]; if(a == 0) b = 1; else if (a == 1) c=1; } with the debugger i see a isn't the current bit of test. Does anybody...
by pfiff
30 Aug 2006 15:19
Forum: mikroPascal for dsPIC30/33 and PIC24 General
Topic: oled + text
Replies: 0
Views: 2624

oled + text

Hi people,
in my current project i use an oled with the controller ssd1332 via SPI interface. the communication with the oled works fine but i have a question:
How can i write text in the oled using predefined fonts?
Can somebody please post a code sequence?

Thanks
pfiff
by pfiff
29 Aug 2006 16:24
Forum: mikroPascal for dsPIC30/33 and PIC24 General
Topic: SPI & oled
Replies: 0
Views: 2822

SPI & oled

HI people, i have a problem and hope somebody can help me... I want to implement to my current project a oled with the driver SSD1332, but i don't know how to init the oled and the datasheet don't helped me a lot. Could somebody please post a code sequence which shows me how to init a oled with the ...
by pfiff
28 Aug 2006 15:30
Forum: mikroPascal for dsPIC30/33 and PIC24 General
Topic: SPI
Replies: 1
Views: 3108

SPI

HI people, i hope somebody can help me... I have a SPI interface with the Temp sense LM 70. I send the right data, but the received data isn't correctly. It seems that the the first bit isn't received from my SPI. Does anybody have a code sequence which shows me how to use the SPI interface? Thanks,...
by pfiff
10 Jul 2006 06:55
Forum: mikroC General
Topic: dmx receiver
Replies: 3
Views: 6961

Hi pahantom9999, thanks for your reply, but i have solved this problem by myself. The problem was, that after i receive a byte i multiply a 16 bit value and this takes a lot of time. pwmred_WritePulseWidth(Data * master); Now i receive all bytes and then i multiply and write the pulse width of the p...
by pfiff
06 Jul 2006 11:26
Forum: mikroC General
Topic: dmx receiver
Replies: 3
Views: 6961

dmx receiver

Hi people, i have an dmx receiver which works not correctly. The data which i get from the receiver i want put out on a lcd. the first 3 Bytes are exactly, but the 4th Byte and the following Bytes aren't on the channels which i send from an extern Dmx Transmitter. This is my code: //----------------...
by pfiff
05 Jul 2006 07:29
Forum: mikroBasic General
Topic: Psoc does not jump in if (xxx)
Replies: 2
Views: 1804

Thanks Raslan,
i have solved the problem by myself.
The problem was when red is 250 and quadPhaseA is 10 and i add quadPhaseA to red then red would be 260 (char only 255) and red would be 4 (260-256). So the compiler wasn't able to set the flag.

thanks for your reply
pfiff
by pfiff
04 Jul 2006 11:50
Forum: mikroBasic General
Topic: Psoc does not jump in if (xxx)
Replies: 2
Views: 1804

Psoc does not jump in if (xxx)

hi people, i have a problem and hope somebody can help me. I have to variables called "quadPhaseA" and "red". I get quadPhaseA from an incremental encoder, which works fine. quadPhaseA is an int, red is an unsigned char. i add quadPhaseA to red like this: red += quadPhaseA; When red reaches 255 is w...

Go to advanced search