element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Microchip
  • Products
  • Manufacturers
  • Microchip
  • More
  • Cancel
Microchip
Forum Need technical help from Microchip? Ask our Expert!
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Microchip to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 112 replies
  • Subscribers 24 subscribers
  • Views 8730 views
  • Users 0 members are here
  • help
  • microchip
  • expert
  • mike_mcglade
  • questions
Related

Need technical help from Microchip? Ask our Expert!

nlarson
nlarson over 15 years ago

This thread has been closed to new questions.

However, we welcome you to Post Your Question about Embedded in the element14 Community Embedded group. You'll find many fellow members and experts who have just the answer you're looking to find! 

 

Thank You, Your Friends at element14 Community

MikeMcGlade

Mike McGlade

Mike has 16 years of experience with Microchip products including MCU, Memory & Analog.  He also has significant knowledge of lighting, safety & security and vending industries.

 


  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 15 years ago in reply to Former Member

    Hi Mike,

     

    i have a problem with program EEPROM on dspic 30F3013.

    i don't understand why i can program or erase EEPROM

    i can read value that i have sent with ICD2

    do you know what happen?

    you can find my code below!

    in debug mode , i can't see the value in NVMKEY ( 0x55 then 0xAA ), and NVMCOM,#WR keep '0'

    can you help me !

     

      mov  #tblpage(posit_P1),w0
      mov  w0,NVMADRU
      mov  #tbloffset(posit_P1),w0
      mov   w0,NVMADR
      call CEEPROM
      MOV  #tblpage(posit_P1),W0
      MOV  W0,TBLPAG
      MOV  #tbloffset(posit_P1),W0
      call EEEPROM

     

    CEEPROM:
      ; Setup NVMCON to erase one word of data EEPROM
      mov  #0x4044,w0
      MOV  w0,NVMCON
      ; Disable interrupts while the KEY sequence is written
      PUSH  SR
      MOV  #0x00E0,W0
      IOR  SR
      ; Write the KEY sequence
      MOV  #0x55,W0
      MOV  W0,NVMKEY
      MOV  #0xAA,W0
      MOV  W0,NVMKEY
      nop
      nop
      ; Start the erase cycle
      BSET  NVMCON,#WR
      nop
      nop
    CEE1:
      ; attente fin ecriture
      btsc    NVMCON,#WR
      goto    CEE1  ; Re-enable interrupts
      POP  SR
      return

     

    EEEPROM:
      ; Write data value to holding latch
      TBLWTL  W2,[ W0]
      ; NVMADR captures write address from the TBLWTL instruction.
      ; Setup NVMCON for programming one word to data EEPROM
      MOV  #0x4004,W0
      MOV  W0,NVMCON
      ; Disable interrupts while the KEY sequence is written
      PUSH  SR
      MOV  #0x00E0,W0
      IOR  SR
      ; Write the key sequence
      MOV  #0x55,W0
      MOV  W0,NVMKEY
      MOV  #0xAA,W0
      MOV  W0,NVMKEY
      nop
      nop
      ; Start the write cycle
      BSET  NVMCON,#WR
      nop
      nop
    EEE1:
      ; attente fin ecriture
      btsc    NVMCON,#WR
      goto    EEE1
      ;Re-enable interrupts, if needed
      POP  SR
      return

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 15 years ago in reply to Former Member

    Thanks for the quick response, Mike image

    Logger permanently connected (when in use), no battery/PSU.

    Data constantly passed to PC for processing, only storage necessary if PC doesn't respond in time, (unlikely).

    So sufficient storage for 40 16 bit words would be OK.

    If the PC can't handle this we'll order a new PC image

     

    10 bit ADC is also OK for this app.

     

    The device is only used as and when required and only with PC connected running its own logging/display software.

     

    Battery not needed. Nice idea tho' image

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • MicrochipRTCfr
    MicrochipRTCfr over 15 years ago in reply to Former Member

    Bonjour Gérard,

     

     

    Avez-vous correctement initialisé les bits de configuration dans votre logiciel ? (non protection de l'E2PROM)

    Il existe également des tutoriels sur les dsPIC30 sur internet :

     

    *  http://asl.epfl.ch/index.html?content=education/courses/MicroInfo/

    * http://electronique.marcel.free.fr/#dsPIC_Microchip

    * http://www.securistreet.com/dri/dsp/support_cours_dsp.html

     

    Je vous encourage à poster votre question sur site de support technique de Microchip : http://support.microchip.com et/ou (plus rapide) sur le forum microchip dédié au dsPIC30 : http://www.microchip.com/forums/f153.aspx

     

    Salutations

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 15 years ago

    Hello Mike,

     

    I was very curious in studying about how the railway signalling actually processed. I got a question that ,

     

    1)If the Railway track is broken / blasted / Crack , say 100-150 kms ahead, then how the Locomotive Driver will get to know about this?

    Is there a wireless communication through which the locomotive driver get the information?

    Are there any communication module developped already which is available in market?

     

    2) Do we have any Technology to detect this and avoid accidents?

    3) Do we have any equipment to do this job?

     

    For Aircrafts & ships  , we have Radar and other sources of signalling on the safety needs, Likewise please provide me awhether there any equipments or technology available to indentify Railway track Cracks/ damage ,before the train crosses the point where the track is cracked/damaged , So that it can avoid railway accidents.

     

     

     

    Thanks and  Regards
    Karthik Vinayaka
    Product Engineer
    GPDE
    Premier  Farnell, India
    Bangalore.
    Tel : +91-80-4000-3865
    Mobile : +91-9986065233
    Email  : karthikv@farnell.com
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 15 years ago
    Hi from Romania, i just visit your site and got this link  http://ro.farnell.com/microchip/dm183033/demo-board-internet-radio/dp/1629964?Ntt=1629964, i want to know if you could help me with some advice on how to use this kit board to build an internet radio device. Thanks, Viorel Bercea p.s.- i am an engineer and need some technical details, thank you.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 15 years ago

    Bonjour,

                J'ai eu comme très bon conseil d'utiliser un PIC32 80mhz avec port USB pour le transfert des informations vers mon ordinateur. J'ai besoin de ce MCU pour controler des IR LED emetteur et photodecteur. Le board ayant les emetteurs, il y aura un 4-to-16 Decoder par 14 IR LED ainsi qu'un Darlington Array par 7 IR LED. Le board receveur aura un 1-to-16 Decoder par 14 IR LED ainsi qu'un QUAD Comparator par 28 IR LED. Je voulais savoir s'il n'aura pas de problème à gérer tout ça. Aussi, je voulais savoir ce que vous pensiez du board "Cerebot_32MX4" qui possède déjà un bon modèle de PIC32 avec communication USB et Package déjà près pour recevoir les cables sans soudure et facile d'utilisation.

     

    Dernière question, je voulais m'assurer que les IR LED Photodetector se connecte bien sur les 2 ports I2C. Je ne sais pas par exemple ou connecter les cables pour aller vers les IR LED emetteur.

     

    Merci

     

    David

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • MicrochipRTCfr
    MicrochipRTCfr over 15 years ago in reply to Former Member

    Bonjour Mr MORIN,

     

    Il est difficile de répondre à vos questions sans informations plus précises sur les composants que vous souhaitez utiliser :

    1/ quelle référence de PIC32 ?

    2/ Quels IR detector (lien vers la datasheet) ?

     

    Concernant la carte Cerebot_32MX4, je pense que ce module industriel est une excellente base de départ pour développer.

    La puissance des PIC32 est amplement suffisante pour ce que vous souhaitez faire.

     

    Vous pouvez également acheter cette carte sur MicrochipDirect. Digilent propose tout un tas de modules pmod pour étendre le Cerebot_32MX4

     

    Des formations sur les PIC32 sont régulièrement proposées au centre de formation de Microchip France si vous souahitez démarrer rapidement avec cette architecture.

     

    salutations

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 15 years ago

    hi,

       do u have any automaitc room light control project with people counter using microcontroller? if u have, can u possibly send it to me? thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 15 years ago

    Hi Mike

     

    I am currently doing a project with consist of a PIC18F4550(host) and a ZG2100M(wifi module/slave).

     

    I want to do a simple testing such that the host will prompt the slave to send a data to my desktop through wireless. After receiving the data at the desktop, the desktop will display the data sent.

     

    Due to budget constraint, i solder the board out from the data sheet(see attached page 20) provided by microchip for the ZG2100M. After soldering, i wanted to connect the host to the slave and do a simple testing.

     

    But there a some doubts.

    1. Do I connect my host SDI to slave SDO or do i connect my host SDI to  slave SDI?

    2. Does the Slave have a SSID or do I assign an IP address to it so that my desktop could recognise the slave? If I were to assgin an IP address to it, how must I do so?

    3. To start the programming for SPI in mplab, i will need the header file for spi am I right?

    4. How should I start writing the program? Do you have any demo program which can help me?

     

    Thank You very much image

    Attachments:
    imageZG2100MC.pdf
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • MicrochipRTCfr
    MicrochipRTCfr over 15 years ago in reply to Former Member

    Hi Calvin,

     

    I think you're gonna have some trouble with PIC18F4550 because its Flash memory size will likely be too small...

    Remember that if you use the ZG2100M WiFi module, only the WiFi protocole (802.11b) is running on the module.

    You still need to run the TCP/IP on the PIC itself.

     

    You'll be able to access high level functions through APIs.

     

    2 recommendations from my side :

    a/ The ZG2100M module has been updated. It's new reference is : MRF24WB0MA

    The main difference is that the new one uses less ressources. However, the old one is not anymore compatible with the new TCP/IP stack >= v5.25

    http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2884

    So if you want to use the old one you must use TCP/IP stack <= v5.20

     

    The TCP/IP stack belongs to the free Microchip Application Libraries package which can be downloaded here.

     

    b/ However I have a much better recommendation which will save you a lot of work : I strongly suggest that you use the open source embedded WiFi project Flyport from OpenPicus.

    If you want to have also USB, it's easy because the PIC24FJ256GA106 can be replaced by the PIC24FJ256GB106 which adds USB connectivity

     

    Free versions of the Microchip compilers can be downloaded here and MPLAB can be downloaded here.

     

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube