microchip languages

Discussion in 'Embedded Systems and Microcontrollers' started by ht systems, Aug 29, 2011.

  1. ht systems

    Thread Starter Member

    Aug 2, 2011
    71
    1
    hello , when i generate a c code file and transform it into hex code to my microchip , the microchip doesnt work at all , whats the problem ?
    note : im using top win 2007 programmer .
     
  2. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    I think you missed the main stuffs...
    Which compiler and development platform ?
    Which mcu? Microchip have a wide range of PICs which one you are talking about.
    Post your circuit and code with the configuration bits you are using...
     
  3. praondevou

    AAC Fanatic!

    Jul 9, 2011
    2,936
    488
    There is too much information missing (almost everything);).


    If you are unsure if the problem is the programmer or the program you wrote, try to program the uC with a simple example program you should be able to find in one of the hundreds of tutorials on the internet or program a very simple program like turning on/off an output pin and measuring it with an oscilloscope.

    Also you can verify with an oscilloscope if the uC oscillator is working.
     
  4. be80be

    Senior Member

    Jul 5, 2008
    431
    57
    Crystal ball time If you figure that one out let me no.

    Code would be nice to see for starters.
     
  5. ht systems

    Thread Starter Member

    Aug 2, 2011
    71
    1
    here is the code the simulation program
     
  6. ht systems

    Thread Starter Member

    Aug 2, 2011
    71
    1
    here it is , i geenerat it from flowcode v4 program . i think that the problem is when i transform it to hex code so would anyone write the steps for transforming the c code to the microchip ?
     
    • 1.txt
      File size:
      3.8 KB
      Views:
      22
  7. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    1)Learn language C
    2)Use HI-TECH C compiler with MPLAB as IDE
    3)Write your code and compile.
    4)You will get your *.hex file load it to mcu.

    Again you didn't provide any information about your PIC,their are many and their compilers are also different so here is the website for HI Tech choose your compiler yourself : http://www.htsoft.com/

    And website for MPLAB : http://www.microchip.com

    Good Luck
     
Loading...