
ajbeavan
EstablishedMember-
Content Count
13 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout ajbeavan
-
Rank
Newbrie
Profile Information
-
Gender
Male
-
Location
Pembroke, Wales
-
Interests
Climbing, Running
-
Hello I am struggling to get MPLABX v1.80 to compile and link my code, I get the following messages Error: Failed to open:../Program/ Error: Failed to open:Files/SourceBoost/Lib/libc.pic16.lib or C:\Program Files\SourceBoost\lib/Files/SourceBoost/Lib/libc.pic16.lib I do not really use MPLABX I prefer the Sourceboost IDE, but I am using the Pickit3 debugger to see whats actually on the chip and get realistic timings. To get around the problem I have used the 'cof' file produced by sourceboost to build a new project in MPLABX. It seems to work!!!!! I can step through the code an
-
Sourceboost V7.20 Rc3
ajbeavan replied to Pavel's topic in BoostC and Chameleon compilers programming
sorry but I don't see this release candidate on the link given -
Temporarily Disable Interrupts
ajbeavan replied to ajbeavan's topic in BoostC and Chameleon compilers programming
Of course, thanks for the response... adam -
Hello I am using the ECCP module of a pic16f690 which is connected to a 555 timer generating a continuous train of pulses that i can adjust the period of using a POT. I am able to easily get the pulse width and period, but struggling to calculate the duty cycle. Presumable I will need to use Float point maths to get the duty cycle or can anyone offer some suggestions. adam
-
Temporarily Disable Interrupts
ajbeavan posted a topic in BoostC and Chameleon compilers programming
Hello, Can anyone tell me if there is a way to disable interrupts within a block of code so that a calculation can be done, without the possibility of the interrupt being actioned. eg using the XC8 compiler, could write.... di() digit=period/4096 ei() adam -
Lcd Not Resetting Busy Flag
ajbeavan replied to ajbeavan's topic in BoostC and Chameleon compilers programming
Thanks...... well I certainly learnt a lot, though I can't say that being a LCD expert was ever high on my ambition list. But I am glad I didnt take a hammer to the whole!!!! adam -
Lcd Not Resetting Busy Flag
ajbeavan replied to ajbeavan's topic in BoostC and Chameleon compilers programming
Hi Dave Finally managed to sort the problem out, after spending so much time thinking about initialisation and 4-bit data mode, I forgot to check if the device had been wired the correct way..... I had everything back to front, so now after 2 weeks and writing my own LCD routines, it was simply a case of wiring. Feel like a real idiot. Sorry to waste your time adam -
Lcd Not Resetting Busy Flag
ajbeavan replied to ajbeavan's topic in BoostC and Chameleon compilers programming
Sorry, I added this line deliberately to hang the code, so that I could monitor the LED states on each of the DB ports at the point the BF flag was set.... -
Hello I would be grateful for some help, before I go completely mad!!!! been working on this for 2 weeks. Have setup a simple circuit to write some output to an LCD which is controlled by a pic16F690. Everything works fine in the simulation. I have built the circuit, and now my problems start..... I have checked the wring and placed LED's on each of the control and data ports to see what is happening. I have managed to isolate the problem down to the LCD not resetting the BF flag after I have done the System reset and set the 4-bit function mode. The controller is a cheap JHd162A whi
-
Volatile Bit Not Updating
ajbeavan replied to ajbeavan's topic in BoostC and Chameleon compilers programming
duh.... sorted (sorry about that!!!) Thanks Dave -
Hello I am writing some code to interface a pic16f690 to a 16X2 LCD. I define the control pins in my header file using volatile bit pinEN @ PORTB . 4 etc. This compiles OK, but when I try to debug the code, the pins are not being updated when I set high or low to READ/WRITE or strobe the enable pin. Any suggestions.... adam
-
Bitwise Not Operator
ajbeavan replied to ajbeavan's topic in BoostC and Chameleon compilers programming
Managed to sort it... I was using VSM to simulate a pic16f690, and had not setup the pin correctly for digital output. -
I am trying to toggle an LED using a Timer interrupt and the NOT operator, with the expression portb.4=~portb.4 When I run the code through the simulator the LED comes on and stays on. Could someone please explain what I am doing wrong. adam