Forums Search for: Microchip
I2C data line (SDA) goes low and hangs
inI have a PIC18F66J50 with a Microchip EEPROM on the I2C port. Sometimes when I program the MCU using MPLAB, the I2C data line (SDA) goes low...
I have a PIC18F66J50 with a Microchip EEPROM on the I2C port. Sometimes when I program the MCU using MPLAB, the I2C data line (SDA) goes low and stays there. Any read or write I then attempt results in a bus collision error and doesn't work. Here is the sequence of events: * cycle power to the MCU/EEPROM board * compile with MPLAB * program the target device with MPLAB. There is cha...
Problem in assembling
inI use Microchip MPASM to assemble. But it doesn't accept keywords like PORTA etc. Kindly inform me if there is any error in the logic of...
I use Microchip MPASM to assemble. But it doesn't accept keywords like PORTA etc. Kindly inform me if there is any error in the logic of the program: #include ORG 00H MOVLW b'00000000' TRIS PORTB MOVLW b'00000011' TRIS PORTA MOVF PORTA,0 SUBLW 00000000 BTFSS STATUS,2 GOTO LOOP1 MOVF PORTA,0 SUBLW 00000001 BTFSS STATUS,2 GOTO LOOP2 MOVF PORTA,0 SUBLW 00
Need help to read 6 DIP switches on a single input
inNeed help to read 6 DIP switches on a single input Microchip
Need help to read 6 DIP switches on a single input Microchip