TS wants TQFP44 not DIP40 package option. I looked from my usual suppliers but they haven't stocked this MCU either, not before July.
Hi P,
Hi T,Can you modify your software to PIC18F46K20? It is more reliable at 3.3V then your current MCU.
TS needs LF version, F version works above 4VIf you need more:
https://www.distrelec.biz/search?q=Pic18f4620
price 2.64€ + vat + posting + customs?
Hi J and T,Differences between 4620 and 46K20 are described in this document
Hi T,PIC18F46K40 has more peripherials, for example two serial ports, more ADC channels, hardware limit timer, zero cross detector etc. For motor control (i would choose dsPIC for this) or triac control applications it suits better than K20. But for your system, IMO, is PIC18F46K20 ok.
Hi J,For the correct frequency you should setup the OSCCON and CONFIG1 registers correctly.
I did not check what the defaults are.
......
Thanks, C.
Hi T,Power on state of PORTA is analog, except RA4. Therefore measuring analog pins with DMM gives random results. If you want set PORTA pins to digital, set corresponding bits in ANSEL register to zero.
Hi J,...
In OSH there is no HFINTOSC setting, so I used INT.
...
What does this mean?
Can't you set OSCCON register and CONFIG1 to whatever values are needed?
This sets all to analog, to make all digital you must set ANSEL = %00000000I set: 'ANSEL = %11111111 'ANS7-0 disabled'