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 8741 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
Parents
  • Former Member
    Former Member over 15 years ago

    Hi, Mike.  We are about to develop a USB connected data logging system with four channels.

    The device needs to fit into a mini package, preferably ca. keyfob size and powered from the USB port.

     

    There a a few Microchip products we have looked at but nothing entirely suitable.

     

    Can you suggest best chips to use, please?

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

    Hi Peter , I probably need to know a little bit more about your application , is the logger permanently tethered to the PC/ Master or does it have it's own battery for when untethered , what are you using for memory to store the logged data - or does it smply get passed to the PC. What sort of ADC do you need ? We've recently released a host of new larger memory USB MCUs - you should see them in our 2nd Half Focus Products Guide .

    If the logger has it's own lithium cell - we offer USB charge ICs too.

     

    Regards , Mike

    • Cancel
    • Vote Up 0 Vote Down
    • 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
Reply
  • 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
Children
No Data
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