Hi T,This sets all to analog, to make all digital you must set ANSEL = %00000000
I also tried 00000000, but same result. Note: All TRIS set to IN, except LED.
C
Hi T,This sets all to analog, to make all digital you must set ANSEL = %00000000
Hi T,Microchip suggests this sequence for setting PORTA for digital inputs:
PORTA = 0 'clear PORTA
LATA = 0 'clear LATA
ANSEL = 0 'set all digital
TRISA = %11111111 'set PORTA all inputs
ANSEL bits 5-7 are for controlling PORTE analog functions
For PORTB use ANSELH instead
The 5V reg warming is normal.Hi T,
Here is the latest prgram, hope it's correct. RA0-2 still show voltages output.
J, #879 Updated with attachment
Drama! Sparks started coming from under the 5V REG, and a hole was burnt into the PCB. Possibly dried flux, turning to carbon. I added 2x capacitors and gave it a clean. Still warm, and the current showing is 100mA but wavering each side.
C.
Hi J and T,
XTL may stop also if crystal and/or capacitors are not suitable or damagedThis is why the XTL stopped in #889.
Hi T,SPI looks somewhat odd or this is what you need?
Hi T,Seems to me like the master sends "4321" +CR +LF and before transmisson slave holds 'A' in SPI buffer. Sorry, i don't have experience with Oshonsoft, i have used years ago only PBP, mostly i use C or MPASM
Hi T,I try figure out why slave sends dummy buffer content after each two bytes transmitted by master. It will take a while, maybe some other with more confident with Oshonsoft BASIC will answer faster.
Hi T,Can you tell me the silicon revision number of the PIC18F46K20? Usually you see it in programmer window. Here is described how to find the number, at the document beginning, in second column.