Put pixel in CCS for PIC16F873

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
telecom84
LCD?
Posts: 1
Joined: Thu May 02, 2002 6:00 pm
Location: Barcelona

Post by telecom84 »

Hello,i have a GLK12232-25,i had mounted one 16F873 in one SIMMSTICK.My porpouse is make a spectrum analicier for TV;i have the hardware and see the spectrum on oscilloscope,i want to see on the LCD in dot matrix mode(graphic mode).
Well,i experimented in RS232.
When put text work fine,but when put one pixel it appears in bad position or no appears.
I use CCS (C for 16F8XX),in RS232 mode its:

printf("%Cp%U%U",T,X,Y);

(where T is 254 and X,Y the coordinates of the pixel).
Well,this don't work,the pixel appears in mistmached position or no appears.

It's all correct?
How it is in I2C mode?

Thanks.
thrust
LCD?
Posts: 7
Joined: Sat Mar 09, 2002 4:00 pm

Post by thrust »

Hi!

Try replacing :
printf("%Cp%U%U",T,X,Y);

with:
printf("%Cp%C%C",T,X,Y);

Since you probably don't really want the string representation of X and Y.

I hope this helps,

/Oskar Sj
Post Reply