Search found 8 matches
- Thu Jan 06, 2011 2:16 pm
- Forum: C and ASM Programming
- Topic: Confused about PIC configuration
- Replies: 3
- Views: 4453
Re: Confused about PIC configuration
Hello, All the configuration settings are covered in the device datasheet. Rule of thumb is that you do not want the watchdog timer enabled or the low voltage programming. Crystals over 4MHz should use the HS setting whereas 4MHz or under should use XT. Hi Benj, Thanks for the response. However thi...
- Mon Jan 03, 2011 10:05 am
- Forum: C and ASM Programming
- Topic: C4PICs V3 & multiprogrammer board (T0IF problem)
- Replies: 15
- Views: 21822
Re: C4PICs V3 & multiprogrammer board (T0IF problem)
Pin A4 on a 16F877a is an "open drain" output and therefore needs an external pull-up for this pin to drive a load. But neither piece of code in your previous email seems to reference this pin - 0x04 is pin 2 and 0x08 is pin 3. You are correct that there is no ANSEL register in the 16F877a code. In...
- Sun Jan 02, 2011 1:08 pm
- Forum: C and ASM Programming
- Topic: C4PICs V3 & multiprogrammer board (T0IF problem)
- Replies: 15
- Views: 21822
PORT A odd behaviour...
Sort of a break through here which I cannot fully explain other than 'weird behaviour' at Port A on my PIC16F877A. I've written some debounce code of myself as replacement of the key() function in exercise 6.5 #define MAXIMUM 20 unsigned char key ( void ) { unsigned char input, output; static unsign...
- Fri Dec 31, 2010 1:10 pm
- Forum: C and ASM Programming
- Topic: C4PICs V3 & multiprogrammer board (T0IF problem)
- Replies: 15
- Views: 21822
Another issue
As I'm working through the course I got stuck at exercise 6.5 at a problem probably related to the one mentioned above. I'm not sure if I should open another topic for it or just reply overhere, but here goes. Exercise 6.5 doesn't seem to work with my PIC16F877A. After some investigation I've conclu...
- Thu Dec 30, 2010 2:57 pm
- Forum: C and ASM Programming
- Topic: Confused about PIC configuration
- Replies: 3
- Views: 4453
Confused about PIC configuration
I'm a bit confused about the configuration of the PIC controller in general. When looking at the exercises they all start with certain types of config flags which determine the clock source (crystal or capacitor), the frequency and so on.. However.. in the SourceBoost IDE enviroment you also have th...
- Thu Dec 30, 2010 12:38 pm
- Forum: C and ASM Programming
- Topic: C4PICs V3 & multiprogrammer board (T0IF problem)
- Replies: 15
- Views: 21822
Re: C4PICs V3 & multiprogrammer board (T0IF problem)
You are right. My bad. Type-O.Steve wrote:I don't know why the 16F887(A) is mentioned. Are you sure it's not the 16F877A?
- Sun Dec 26, 2010 1:37 pm
- Forum: C and ASM Programming
- Topic: C4PICs V3 & multiprogrammer board (T0IF problem)
- Replies: 15
- Views: 21822
Re: C4PICs V3 & multiprogrammer board (T0IF problem)
I'm using the E-blocks kit but with the PIC16F887A device, not the PIC16F88. (I don't even know what a HP448 dev board is) However tgartlan reported the exercises wouldn't work either on the PIC16F88 (see couple of posts back). In the supplied documentation by my school it explicitly states we shoul...
- Sun Dec 19, 2010 5:59 pm
- Forum: C and ASM Programming
- Topic: C4PICs V3 & multiprogrammer board (T0IF problem)
- Replies: 15
- Views: 21822
Re:
I've just had a look at these programs, and I can see why there might be problems. I'm not 100% sure, but the problem could be with these lines: /* if the light is on turn it off */ if (input_pin_port_a(0)) { output_low_port_a(0); } else { /* if the light is off turn it on */ output_high_port_a(0);...