Search results

  1. NorthGuy

    Trying to buy the right sockets for my PICs

    Unless the PIC is very small, in-circuit programming/debugging is the best way to go. With the small ones (such as 6-pin), its' not very productive - you don't want to give up 3 out of 4 available pins for debugging.
  2. NorthGuy

    Trying to buy the right sockets for my PICs

    ZIF sockets are absolutely the best. The only drawback, they don't go well into the breadboard, so intermediary PCB is needed for breadboarding.
  3. NorthGuy

    Which PIC, LED PWM dimming

    All PICs are somewhat differenbt from each other. For 628A: You first set up TMR2. You probably want it slow. So, use pre-scaler 16. Set PR2 to 0xff to get maximum period. Then write 0x80 to CCPR1L and enable timer. This will produce 50% duty cycle. Does this work?
  4. NorthGuy

    Which PIC, LED PWM dimming

    You need to tell what PIC you use and how you set the duty cycle.
  5. NorthGuy

    choosing micro fo BLDC motor speed control

    Microchip has hundreds of different models of PICs which are specifically designed to drive BLDC motors. For example, dsPIC33FJ12MC201 (this is a small one, there are many big ones if you need). Here's the section of its manual which explains the PWM module...
  6. NorthGuy

    Not understanding C, DC, & Z flags from my homework?

    What is the biggest number that can fit into 8-bit register? What is the biggest number that can fit into 4-bit nibble?
  7. NorthGuy

    Not understanding C, DC, & Z flags from my homework?

    C flag is set when the result wouldn't fit in 8-bit register. Will (0x85 + 0x9f) fit in 8-bit register? DC is the same, but only for the low nibble. Will (0x5 + 0xf) fit in 4-bit nibble? Z is set when the result is zero, Is it?
  8. NorthGuy

    8 Bit or 32 Bit Microcontroller

    Next time you're asked a question which starts from "What is better", ask "what is your definition of 'better'?" There are many considerations when choosing an MCU, and two things which are of the least concerts are "number of bits" and nominal MHz speed. These are marketing things. However...
  9. NorthGuy

    Which PIC, LED PWM dimming

    PIC16F1507 looks good. 4 PWM channels, 20 pins. For PWM explanations, just look at the datasheet. Practically, you just write the duty cycle into a register, and that's it. Nothing special.
  10. NorthGuy

    final embedded system product for production

    Usually semiconductors have wide temperature tolerances. When I had more free time, I had built a network of various devices on my property, many of them outside. I protected them from moisture with NEMA rated enclosures - fine for home projects, but might be to expensive for production. They...
  11. NorthGuy

    Getting value of ADRESH out of a pic μcu?

    "<=" is an operator and cannot have spaces inside.
  12. NorthGuy

    Converting int to string - C Programming

    Similarly to what you posted, bufr[2] declares an array of two elements, not three!!!
  13. NorthGuy

    Converting int to string - C Programming

    But you declared your array as containing only 2 elements: These elements are bufr[0] and bufr[1]. bufr[2] is outside of reserved memory.
  14. NorthGuy

    Converting int to string - C Programming

    Doesn't matter. It is busting memory somewhere. May not affect anything if the memory you're busting is unused. Then, when your program grows, it may stay harmless. Or it may byte you. Symptoms are simple. Your program crashes or behaves in an unpredictable way. Since at that moment you're...
  15. NorthGuy

    Converting int to string - C Programming

    You also need a space in the buffer to hold terminating NULL character.
  16. NorthGuy

    Arduino momentary input to turn on consecutive outputs

    I didn't look through all your code (hard to follow with the lost indentations), but you need to be careful with things like that: if (buttonState == HIGH); // if the current state is HIGH then the button // wend from off to on: buttonPushCounter++; Here the semicolon after "if" terminates...
  17. NorthGuy

    Reverse engineering a hoverboard (with wheels) accelerometer

    Another option is to re-program microcontroller. It all depends on the level of complexity. Something which looks very complex may happen to be really simple once you understand what's going on.
  18. NorthGuy

    Reverse engineering a hoverboard (with wheels) accelerometer

    If you just want to emulate the signal, it shouldn't be difficult to simply reproduce what you see without paying much attention to what it is.
Top