PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Dec 22, 2021 4:03 pm |
|
|
Quote: | So here I am confused.
|
It takes 842 ms to run this loop (with a 4 MHz PIC clock):
Code: |
for(i=0;i<64;i+=8)
{
for(j=0;j<128;j++)
{
for(k=0;k<8;k++)
{
if(bit_test(imagine[sayac],k))
{
glcd_pixel(x+j,y+i+k,ON);
}
}
sayac++;
}
}
|
Quote: | #include <TT.h>
#device ADC=8 // Can not set this option this far into the code
#use delay (clock=4000000)
#use fast_io(a) |
Put that line inside the TT.h file. Put it immediately after the
#include file for your PIC. |
|