You have all the inputs as digital inputs ANSEL = $00 Shouldn't A0 be an analogue input?
Adrian
Type: Posts; User: Adrian; Keyword(s):
You have all the inputs as digital inputs ANSEL = $00 Shouldn't A0 be an analogue input?
Adrian
Hi Dave
I have to admit I had never heard of WINE before but a google search reveals that someone has got it working on Mac OS X. I will look into it further. I have run PCs for years but having...
I'd love a version that worked with iMac - we're multi-platformed here!
Adrian
Yes thanks Bruce. Slip of the tongue between Editor & Programmer. It was the Programmer I set back to default options. I guess I must have jiggered one of the default settings which as you say...
Hi Bruce
Problem solved!
Your download produced the same symptoms as my programme, but when I read it back it certainly didn't show INTOSCIO - from memory it might have been INTRC also MCLR was...
Thanks Bruce
I'll try that tomorrow morning. Just jumping into a bath for a night on the town..!! Well not quite on the town.... at my age its more sedate but I'll have a go tomorrow and let you...
Hi mackrackit
Here it is.
To be clear I have removed the PIC from it's PCB and stuck it on a breadboard and just programmed it with these 10 lines of code. I have programmed it both with MPASM...
Hi Bruce
My programme is exactly the same as yours (I removed the 1 from OSCCON bit 0). It is just the same as before. I have a 1 Mhz square wave on pin 4 and a sawtooth waveform on pin 5. I have...
Hi Bruce
Working through the errors!
OSCCON is typo in my post - OK in programme
MCLRE ditto
underscore in INTOSCIO ditto
Can't see anything wrong with CMCON0Apologise for wrong PIC...
Sorry for wrong information. This should be Pic16F684 not 685. Must be getting tired. HOWEVER it still doesn't work!!
Hi Alain
Sadly not, so no beer - not even a good Cotes du Rhone from E.Guigal........! Unfortunately this was a typo error on my post. It was correct in the programme. Rest of programme is fine...
Thanks mackrackit but still no joy. I've tried the open collector thing and I believe the COMCON0 to be right. This is puzzling me. I would have thought there should not be clock on A4 when INTOSCIO...
I thought(!) I understood that PortA 4 & 5 on a PIC16F684 could be used as general purpose I/O pins with an internal oscillator. So far I have been unable to achieve this. I have this at the top of...
Hi Darrel
I changed the bit of maths and hey presto the programme instantly came good. It is cycle accurate all the way up. I'm really pleased...so many thanks. Now I'll get back to studying your...
I'm using the ubiquitous 16F877A. Using the time difference between you and the UK I will change the maths anyway and try different frequencies again. I will also double check everything on the...
Darrel
Many thanks - the programme worked spotlessly up to 1KHz. I put Freq as 1000, T1CON as 0 and Prescaler as 1 plus I just added TOGGLE PORTB.0 in the T1Handler section. With any frequency up...
Darrel
Thank you very much. I have taken a look and 'instantly' it doesn't look so easy to understand, however it also appears to be very crafty and very useful. I am going to plug away at your...
Yes - that's what I meant. I imagined that the programme overhead would mop up 'some' 'ticks' but I was surprised when it ended up at 107 adrift. The oscillator frequency is a good point - I'll check...
Thanks Skimask
The reload criteria seem to be right, as you also concur, but for the life of me I still can't understand why it is over 100 ticks out. I have measured the frequency both on a...
I have used Darrel's interrupts to generate a 1KHz pulse stream. As I'm using TOGGLE the interrupts needs to be at a 2KHz rate. Using PicMultiCalc with 7 instructions and 20MHz oscillator this gives...
Thank you for that, Skimask. I really appreciate you coming back and putting this one to bed once and for all. I guess that Counter 0 to 7 clears the temp array and 0 to 8 hangs up due to the extra...
Thanks for that Bob. The bit I was confused about is Skimask's statement "MyVars var Byte[8] sets aside 9 bytes, index 0 (zero) is also valid"
I thought I understood that MyVars VAR BYTE[8] had 8...
Hi Skimask
Thanks but there is something I'm not understanding. I've tried your programme and it works fine until the first timeout then it won't 'goto main' and loop through again. Should it? If I...
Hi Skimask
Counter 0 to 7, perhaps? And possibly no quote marks in third line after 8?
Adrian
Off topic...sorry
....E U get done taxing that $25 it will be $75....
You're right! Tax is the buzz word here at present. UK diesel price about $12 gallon, at present conversion rates. Tax rate...