---
+ Post New Thread
Results 1 to 13 of 13
  1. #1
    Full Member level 1
    Points: 998, Level: 7

    Join Date
    Aug 2011
    Location
    Philippines
    Posts
    114
    Helped
    0 / 0
    Points
    998
    Level
    7

    PICDEM Z DEMO BOARD source code for pic18f4550 question

    hi, anyone have any idea whats the source code for picdem Z demo board, using zigbee module? with default, the module uses PIC18f4620, is there any possibility that ill migrate the program? or its universal? cause it says on the demo source code " Processor: PIC18F " so any of the PIC18F family are able to run the source code? thanks

    ---------- Post added at 20:29 ---------- Previous post was at 20:29 ----------

    by the way i am planning to use pic18f4550.

    •   Alt3rd September 2011, 21:29

      advertising

        
       

  2. #2
    Administrator
    Points: 58,330, Level: 58
    Awards:
    3rd Helpful Member
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    8,375
    Helped
    2156 / 2156
    Points
    58,330
    Level
    58
    Blog Entries
    3

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    Quote Originally Posted by dabby21 View Post
    ....with default, the module uses PIC18f4620, is there any possibility that ill migrate the program? or its universal? cause it says on the demo source code " Processor: PIC18F " so any of the PIC18F family are able to run the source code? by the way i am planning to use pic18f4550.
    Yes, you should be able compile the Demo Source Code for the PIC18F4550 without an serious problems. I believe Microchip's ZigBee Stack supports the PIC18, PIC24 and PIC32 families.

    BigDog


    1 members found this post helpful.

  3. #3
    Full Member level 1
    Points: 998, Level: 7

    Join Date
    Aug 2011
    Location
    Philippines
    Posts
    114
    Helped
    0 / 0
    Points
    998
    Level
    7

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    sir,

    ive tried to burn the zigbee demo coordinator hex file to pic18f4550,using the epickit 2, and it says a warning that the program is higher to burn, any suggestion sir? are there any parts of the zigbee demo program that will be modify to run on pic18f4550? thanks sir.



  4. #4
    Administrator
    Points: 58,330, Level: 58
    Awards:
    3rd Helpful Member
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    8,375
    Helped
    2156 / 2156
    Points
    58,330
    Level
    58
    Blog Entries
    3

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    You would like to port the ZigBee Coordinator Demo to a PIC18F4550 based design. Is this correct?

    Can you post or upload a schematic of your design? What compiler are you currently using?

    BigDog


    1 members found this post helpful.

  5. #5
    Full Member level 1
    Points: 998, Level: 7

    Join Date
    Aug 2011
    Location
    Philippines
    Posts
    114
    Helped
    0 / 0
    Points
    998
    Level
    7

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question


    heres the schematic sir, taken from the pic dem z user guide, and yes, i would like to port the zigbee coordinator/ router/ RFD to a PIC18F4550, were using the c18 compiler, actually sir i was thinking, there will be modifications on the demo source code that you have given me, but i dont know where to edit or will change on the source codes.
    thanks sir, till then



  6. #6
    Administrator
    Points: 58,330, Level: 58
    Awards:
    3rd Helpful Member
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    8,375
    Helped
    2156 / 2156
    Points
    58,330
    Level
    58
    Blog Entries
    3

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    So basically you are using the PICDEM Z board with the PIC18F4550. Is this correct?

    If so I'll compile it for you and upload the project.

    BigDog


    1 members found this post helpful.

    •   Alt5th September 2011, 02:30

      advertising

        
       

  7. #7
    Full Member level 1
    Points: 998, Level: 7

    Join Date
    Aug 2011
    Location
    Philippines
    Posts
    114
    Helped
    0 / 0
    Points
    998
    Level
    7

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    hi sir,

    yes sir, definitely, please do so sir, and ill gladly to observe and study the differences youve made on the pic18f4550 and pic18f4620, please do so sir! thank you!!!!



  8. #8
    Administrator
    Points: 58,330, Level: 58
    Awards:
    3rd Helpful Member
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    8,375
    Helped
    2156 / 2156
    Points
    58,330
    Level
    58
    Blog Entries
    3

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    I've already examine both the zLink.lkr and zigbee.def, both of which need to be modified when compiling for a new target PIC.

    The largest issue with using the PIC18F4550 instead of the PIC18F4620, is the PIC18F4620 has a little more than half the Data RAM of the PIC18F4620.

    Using the current configuration the PICDEMZ Coordinator Sample Program consumes 3617 bytes of the available 3968 bytes of Data RAM on the PIC18F4620.

    The PIC18F4550 has only 2000 bytes of Data RAM. So major restructuring of the original code will have to be done, to squeeze into the PIC18F4550.

    Do you have to use a PIC18F4550 instead of the PIC18F4620?

    My other concern is if I managed to cut the Data RAM consumption below the 2000 bytes, will there be enough Data RAM left for other tasks.

    BigDog


    2 members found this post helpful.

  9. #9
    Full Member level 1
    Points: 998, Level: 7

    Join Date
    Aug 2011
    Location
    Philippines
    Posts
    114
    Helped
    0 / 0
    Points
    998
    Level
    7

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    yes sir, since we will be using PIC18f4550 for the a temperature sensor using LM35,i think our program will not consume a big amount of data Ram available since we will be outputting results through LED's as an indicator.



  10. #10
    Administrator
    Points: 58,330, Level: 58
    Awards:
    3rd Helpful Member
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    8,375
    Helped
    2156 / 2156
    Points
    58,330
    Level
    58
    Blog Entries
    3

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    So you must use the PIC18F4550 instead of the PIC18F4620?

    The PIC18F4620 can equally carry out the task of ADC from the LM35.

    Using the PIC18F4620 would simplify the project as a whole.

    BigDog


    1 members found this post helpful.

  11. #11
    Full Member level 1
    Points: 998, Level: 7

    Join Date
    Aug 2011
    Location
    Philippines
    Posts
    114
    Helped
    0 / 0
    Points
    998
    Level
    7

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    yes sir, but thats one of our requirements, so i think we need to comply, but ill go with pic18f4620 regarding our upcoming computer design.



  12. #12
    Administrator
    Points: 58,330, Level: 58
    Awards:
    3rd Helpful Member
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    8,375
    Helped
    2156 / 2156
    Points
    58,330
    Level
    58
    Blog Entries
    3

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    Ok,

    I'll see what size Data RAM I can squeeze the design into.

    You'll have to keep the task of ADC from the LM35 down to a minimum. No Thrills.

    What are the task requirement of the Routers and End Devices on this ZigBee network?

    It seem they should be handle the ADC from the LM35s and passing the sensor data to you the Coordinator.

    BigDog


    1 members found this post helpful.

  13. #13
    Full Member level 1
    Points: 998, Level: 7

    Join Date
    Aug 2011
    Location
    Philippines
    Posts
    114
    Helped
    0 / 0
    Points
    998
    Level
    7

    Re: PICDEM Z DEMO BOARD source code for pic18f4550 question

    my plan is, LM35 adc conversion will be our device, pass down to the end devices/routers and send the output to coordinator and output it on LED indicators,and for the upcoming design ill output the conversion to 3310 LCD.



+ Post New Thread
Please login