Can only hope!!! I think it still has a market, just product is not being marketed and it's a difficult experience to get started with.... IE
Can't get my first code running...
Have given up trying to get MPX to work even with the rev. you suggested.
Hence current on version 3.65 of mpx.Only need this installed for the pickit3 to work mcs.
I've got MCS now comipling and writing to the micro, but code doesn't appear to be executing.
Have tried a few variation of registeres but program is as follows:
#CONFIG
CONFIG FOSC = RC ;
#ENDCONFIG
TRISB = %00000000
LED0 VAR PORTB.2 ' Assign name "LED" to PORTB.0
LED1 VAR PORTB.1 ' Assign name "LED" to PORTB.0
mainloop:
High LED0 ' Turn on LED connected to PORTB.0
High LED1 ' Turn on LED connected to PORTB.0
Pause 400 ' Delay for .5 seconds
Low LED0 ' Turn off LED connected to PORTB.0
Low LED1 ' Turn off LED connected to PORTB.0
Pause 400 ' Delay for .5 seconds
Goto mainloop ' Go back to loop and blink LED forever
End
Via the program options of MCS using the PCK3cmd.exe from the MPLABX with the following command line:
-P$target-device$ -F$hex-filename$ -B -E -M -L
Programming seems to work but have no flash led! MCLR is held high..
I'm sure I'm missing somethign so obvious...but any pointers appreciated.
************************************************** ***
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.49.09
Firmware type..............PIC18F
Target voltage detected
Target device PIC18F45K20 found.
Device ID Revision = 1c
Erasing...
Erase successful
Device Erased...
Programming...
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7f
configuration memory
Programming/Verify complete
PICKIT3 Program Report
17-Jun-2024, 15:02:41
Device Type:PIC18F45K20
Program Succeeded.
Batch Mode Count : 1
Batch Mode: Press Enter to repeat the same operation ! Enter (quit) or (q) to abort the operation
Bookmarks