It's on page 178 of the data sheet under DC characteristics: look for Vih minimum (Voltage input high minimum). Threshold depends on the pin, and what mode it is in.
The maximum advised is 20MHz, as I'm sure you know, you will probably also struggle finding a 40MHz crystal that isn't an overtone one?.
Why do you need it so fast anyway?, usually 99.x% of a PIC's time is spent just wasting time. If you really do have a specific need for speed?, try the 18F series which run at 40MHz (using a PLL circuit).
The maximum advised is 20MHz, as I'm sure you know, you will probably also struggle finding a 40MHz crystal that isn't an overtone one?.
Why do you need it so fast anyway?, usually 99.x% of a PIC's time is spent just wasting time. If you really do have a specific need for speed?, try the 18F series which run at 40MHz (using a PLL circuit).
well i tried using a 40mhz one and it's not working...
i need it to be that fast bcoz my cmos image sensor can only go as low as 8Mhz, so the PIC are probably not fast enough?
==============================
i tried it with 40MHz and mmm it worked.... hope that won't damage the PIC though....
but still having problem reading the data from the sensor...><
i have another problem hope someone can help me out:
do{
val=input(PIN_C1);
}while(!val); //wait for hsync to go high
I'm connecting this hsync signal from my image sensor, and what it suppose to do is wait for it to go high, I read the signal on an oscilloscope and it does go high to 3.3V. But my PIC can't seem to be reading this, any suggestions?
Thanks in advance
You could use a MOSFET as a level shifter. Or you could use one of the many 3.3v --> 5V level shifter chips.
Also note that some of the inputs on the 877 are Schmitt trigger and some are TTL level. Try using an input that is TTL level such as RB1
i have another problem hope someone can help me out:
do{
val=input(PIN_C1);
}while(!val); //wait for hsync to go high
I'm connecting this hsync signal from my image sensor, and what it suppose to do is wait for it to go high, I read the signal on an oscilloscope and it does go high to 3.3V. But my PIC can't seem to be reading this, any suggestions?
Thanks in advance
You could use a MOSFET as a level shifter. Or you could use one of the many 3.3v --> 5V level shifter chips.
Also note that some of the inputs on the 877 are Schmitt trigger and some are TTL level. Try using an input that is TTL level such as RB1
but wouldn't 3.3V be recognize by the PIC as logic 1? I thought the I minimum for it is 2V...so 3.3V should be enough shouldn't it? I'll give RB1 a try...hope that works
Thanks for helping out