Search results

  1. chopnhack

    Assistance with MPLAB C Code

    I am having trouble understanding how we can convert the datasheet given values which are usually binary for ASM use to the hex values you showed. How did you derive those values? The chip I am working with does not need an external crystal nor does it have a6/a7. Its only a 8 pin (6 functional...
  2. chopnhack

    Assistance with MPLAB C Code

    True, the compiler is XC8 IIRC. Thank you for that tip - that really does simplify the syntax a lot! I am trying to use one port to take in an analog signal. The datasheet refers to ADCON needing port config (I assume TRIS is used), channel select, adc conversion clock and interrupt. The...
  3. chopnhack

    Help with debounce code

    What I really need is to learn how to call the special function registers in mplabs! Thanks again :-)
  4. chopnhack

    interfacing pic16f877A with motion sensor

    Very astute! This would end up yielding false light on conditions, which could probably be taken care of with some programming to poll the interior PIR for heat and motion. If none found, lights out.
  5. chopnhack

    Assistance with MPLAB C Code

    That did it! Thank you so much jaya - it was the syntax!!! I was using LATAbits.RA2. Is there a reference to learn the proper syntax? Thanks again!
  6. chopnhack

    interfacing pic16f877A with motion sensor

    An interesting project! What happens when you have more people passing the exterior than actually go into the room?
  7. chopnhack

    Help with debounce code

    Thank you Jaya, it is something I can eventually build to. I have not started mikroC yet. I have been tempted, but I want to be able to at least finish one project with mplabs. The syntax seems to change somewhat between compilers and that is what I am having the most trouble with right now -...
  8. chopnhack

    Assistance with MPLAB C Code

    I am not sure of what I am doing wrong. I tried to access one LED on port RA2 of a PIC10LF320. I was able to get it to flash in ASM, but I am trying to work this out in C. So far I have successfully (I think) created my header file. My program compiles and loads, but no light from the LED. Any...
  9. chopnhack

    Thoughts on LED Replacement of 8ft Tubes

    I had a similar thought on them and discovered that they were commercially available... imagine my shock LOL. I have come to the electronics world a novice too late in the cycle to contribute much, but like you, I have a good idea once in awhile! The TVS is a great idea - I would install one...
  10. chopnhack

    So I missed a memo.....or three or four

    This is what I was after. I find the ASM too cumbersome, it makes sense sometimes, but at other times its too confusing, so much simpler to assign a variable to the specific pin and toggle it as necessary. I noticed that you made mention of TRIS and Port which are assembly terms, does PicBasic...
  11. chopnhack

    Help with C code or windows 7 cmd prompt pop up box

    Quick solution was removing return 0; :oops::rolleyes: Isn't the return 0; necessary to inform main that there is no value returned?
  12. chopnhack

    Help with C code or windows 7 cmd prompt pop up box

    Hi folks, reading a book on C programming, a modern approach and working through the examples. So far so good, best book on C I have ever read! One problem I am having with some of my programs is that they behave differently outside of the IDE. I am using codeblocks, but when I save my program...
  13. chopnhack

    So I missed a memo.....or three or four

    I am new to these devices and their programming, but I am starting to see that the offerings like mikro C, etc, are IDE's whose value is really built on the libraries of functions that they have developed. Am I correct in that thought or ? With PicBasic, how are the pins of the pic addressed?
  14. chopnhack

    So I missed a memo.....or three or four

    Hi Steve! Unfortunately it doesn't cover one of the chips I am currently playing with. Otherwise it looks pretty interesting. Do you personally use it?
  15. chopnhack

    So I missed a memo.....or three or four

    That is where I am at, trying to figure out how C interfaces with PIC processors. The Pi is neat too, but sometimes you just need a 60 cent chip to get the job done and a few lines of codes to make it happen. I am looking at some online courses in C and reading C Programming a modern approach to...
  16. chopnhack

    PC question (VCORE voltage)

    Good God, that is a huge heat sink!! I like the design, very smart to make it tall and integrate a fan with it. Have you no room for a case fan? Do you have a free bay to use something like this...
  17. chopnhack

    Relationship of frequency and capacitance.

    Bravo Ratch - that is a brilliant explanation. Someone should sticky that response! @Ian The reactive impedance is effectively a resistance then that is intrinsic to the material - a heat less resistance. As the voltage continues to rise on a long wavelength (low frequency) how does the cap...
  18. chopnhack

    Relationship of frequency and capacitance.

    Let me post the section that fired off the few synapses in my brain for clarity :D Why? What characteristic of the capacitor makes it such that it passes mostly high frequencies?
  19. chopnhack

    Relationship of frequency and capacitance.

    Hello all, I am reading Electronics for Dummies.... yes, I am that desperate LOL I am 71 pages in and finally have found something to say, hey, I have a question: In the discussion of capacitors, it states how capacitors can be used to adjust the frequency of a signal. My thought was that the...
  20. chopnhack

    automatic water pump

    I am not sure of what you are asking. Are you asking how to connect the physical (wires) of the pump motor to your circuit? Agreed, as I typed was going to say mcu leg to transistor to pump. The two leads of the pump are split between the source and return. Is this an AC or DC motor?
Top