Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Picxie

  1. Port A's default mode is as an analogue input, you have to switch off the adc function using adcon1 See page 43 of the PIC16F87xA data sheet
  2. A little weird, the header includes the c file which includes the header. You are prototyping some_function after its body has been defined in implemenation_file.c #ifndef _HEADER_H_ #define _HEADER_H_ #include "implemenation_file.c" void some_function(var); #endif try #ifndef _HEADER_H_ #define _HEADER_H_ void some_function(var); #include "implemenation_file.c" #endif though I have to say the whole scheme is rather ghastly and will probably fall over at linking due to some_function being included in more than one .obj file
  3. You disapoint me , Id rather you print "07734" on some inverted Nixie tubes.
  4. While waiting we can watch http://www.mr-lee-catcam.de/index.htm
  5. If anything like my cats, the female will spend most of her time sat above the fridge growling at the male .
  6. Some ones beat you to it see http://www.ananova.com/news/story/sm_23651...u=news.quirkies
  7. Please dont post any candid shots of it washing its bits! Almost grounding, but it should be enough for your purpose. I have one of those keychain cameras, a problem is that the picture memory is volatile and a momentary intermittent contact of the battery just from vibration can wipe all the pictures, be warned!
  8. Learn some marketing speak! The feature has been upgraded.
  9. Sorry for the short answers, first time the phone went and second time I got called away then got distracted. Anyhow, it is almost certainly Read Modify Write, the fast A.0 blips on momentarily implies it is being written to and then overwritten by th enext instruction. How does this work? A PIC has rather crude ports compared to other processors, a read always reads the state of the port pins a write always writes to the output register. Instructions that modify SFRs read the SFR into a hidden reg, modify the hidden reg and write back to the SFR, when this happens with a port it i
  10. No priority interrupts, I am using pic16f877. I am talking about software usart and so it does not generate any interrupt ( for that matter i think even the hw uart lib of source boost does not generate interrupt, but does a software polling of the interrupt or status flags( the rx & tx interrupt enable bits are cleared). I don't want to use my own routine. If i use the SB lib i have the advantage of handling strings ,ascii etc with ease( i suppose, i haven't tried). Regards Raghunathan. Use the hardware UART, problem solved. The problem with the SW UART is that any interru
  11. Less software required, you are not tieing up the processor to some bit bashing routine. Make cyclic buffers for your RX and TX data and service in interrupt time.
  12. Microchip tinkered with fuzzy logic in the mid 90's hailing it as the next great thing, also at the same time they reckoned there was no requirement for expanding FLASH processors beyond PIC16F84 and that the soon to be released Golden Gate (PIC18) would solve all the shortcomings of PIC16. I guess the words "solve" and "inherit" were confused in the Microchip dictionary. Try searching for fuzzy on Microchips website, the latest documents are dated around 1997. Whilst down nostalgia town lets remember Microchips pi55 poor C compiler and the time the Microchip Data CD had a virus on
  13. If you do a google search for the OPs name he started asking for C advice on a BASIC forum. (and he sent me message asking how to do it) I predict no immediate requirement for cap and gown.
  14. Hi Abu, this sounds like a project I did once, where are you studying?
  15. Hi Raghunathan The Microchip website has a feature where you can ask questions such as this direct to their engineers, though it does seem a little slow today and as it is the Easter weekend you may not get a reply till Monday.
  16. I think you need to learn how to program and use the tools before trying to work on second hand code.
  17. You know it just occured to me that maybe Microchip put that sspcon2 register there to serve some purpose! <{POST_SNAPBACK}> ... and that purpose is, along with sspcon1 and sspcon in PIC16, to control the synchronous serial port and is not required to get your RS232 type serial connection going.
  18. You know it just occured to me that maybe Microchip put that sspcon2 register there to serve some purpose!
  19. Such a flood of relevant information will ensure a rapid solution.
  20. SourceBoost 6.60 BoostC18 Reproducable every time When I change a compiler option I would expect the next build to compile all C files but it doesnt. eg say I've had the options set to -d _POISON_ and I change them to -d _PIZZA_ Then I would expect all the C files to compile in order to resolve the options set by the #ifdefs ie without a full recompile some objs would be still be using POISON instead of PIZZA
  • Create New...