Magic thanks! That's done the trick.by GavinHannah01 - ByPic
constant LED 1 << 0 constant LED2 1 << 1 constant LED3 1 << 2 @ANSELACLR = 1 @TRISACLR = 1 while loop @LATAINV LED @LATAINV LED2 @LATAINV LED3 close loop This is my code summarised, I have the register addresses with the @ all set to digital. I tried doing this on PORT B (I altered the addresses) and I would only get the same result. LEDby GavinHannah01 - ByPic
Before the main function I have; TRISACLR = 1 ANSELACLR = 1by GavinHannah01 - ByPic
My apologies, I was using @ in my code: @LATAINV = LED @LATAINV = LED2 @LATAINV = LED3 That is the code I was using above. But nothing happens except that the LED connected to RA0 flashes on and off. I'm not getting any response from the LEDs connected to RA1 or RA2.by GavinHannah01 - ByPic
I solved this problem. I found that I had not set up PSPAD to recognize the syntax of mBasic so when I tried to load the file, it wouldn't recognize the code. Having set up PSPAD, I can now transfer .bas files written in PSPAD.by GavinHannah01 - BV500
Hi there, I have the BV500 setup and have been looking through the tutorials. I have a problem that I'm struggling to solve. If I connect three LED's to Port A RA0 - 1 - 2; How can I activate the output pins individually? I have tried using LATAINV variable name and LATASET. I use constants to define the LED's i.e: constant LED 1 << 0 constant LED2 1 << 1 constant LEDby GavinHannah01 - ByPic