Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Recent content by yohanevindra

  1. Y

    MCP4161/4261 Digital Potentiometer

    Hi. I need to interface the MCP 4161/4261 digital potentiometers with an ARM based board using SPI. Does anyone know how to use them and program them using C? Or is there any site that I can use which has tutorials? I've found a few with BASIC but its hard to make head or tail of that code.
  2. Y

    buffer/sustain input

    My plan is to have interrupts to detect the change in inputs and then the ISR will be to transmit the data to the PC via serial. Is that ISR too long? And does the microcontroller "latch" the input on any pin?or just the interrupt enabled pins? So no buffer is needed?
  3. Y

    buffer/sustain input

    Hi.sorry for the confusion.yes my worry is about the "I got an input signal while I was busy" I know the arduino has interrupts. My worry is that when the arduino is within one ISR what happens if I get another input signal? I'm interfacing an arduino to three other devices and I'll set it...
  4. Y

    buffer/sustain input

    I'm now thinking whether to have another PIC capture the inputs and feed it to the arduino. My plan was for the microcontroller to enable input and when the latch reads disable and store in memory
  5. Y

    buffer/sustain input

    Instead of controlling the D latch through a clock, can't I control it through a microcontroller?
  6. Y

    buffer/sustain input

    What happens if the microcontroller is in another function and during that period a set of inputs change (to 10011) and then reset to 00000. When the microcontroller reads the inputs will it be 00000 or 10011? That is my problem. If you know of some digital signal buffer/storage method can...
  7. Y

    buffer/sustain input

    the datasheets/manuals that I have for the devices dont specify the duration. so if we assume the duration can be between 0-10ms,10ms-100ms,100ms-500ms,500ms-1s,1s-2s,2s+ what are my options? can i use a d latch?or what else?
  8. Y

    buffer/sustain input

    range? well the input signal will be between 0-5V. cant I setup an interrupt to store the state when one pin goes high? just tell me what options are there for me?depending if the duration is in the order of miliseconds, 100s of miliseconds or more than a second.
  9. Y

    buffer/sustain input

    i need to do a project which consists of inputs and outputs..the inputs are coming from other devices, of which I am not sure how long the the duration of the input signals will be. is there a way that I can "buffer" or sustain the input signals until they're read by the microcontroller...
  10. Y

    Problems with AD converter

    PROBLEM SOLVED!!!!! you have to restart the AD converter everytime after you finish a conversion. That's why the registers were never updating.
  11. Y

    Problems with AD converter

    I dont think there is a problem with the ADCON1 PCFG value, as the PORTB LEDs light properly when I insert them at points to check that the program has reached that point. For instance, to check that the interrupt ISR was reached, i inserted a command to PORTB = 0x03, and the LEDs light up...
  12. Y

    Problems with AD converter

    Im trying to make a simple program light the LEDSs based on the AD conversion value, which will be the position of the variable resistor which is connected to Port A0 on the PICDEM2PLUS board. This is my code #include <p18f4520.h> #define LED1 0x01 #define LED2 0x02 #define LED3...
  13. Y

    Pic18f4520 a/d

    In setting the A/D converter, its required to set ADCON2. In that register there are two sets of bits, namely the A/D acquisition time select bits and the A/D conversion clock select bits. At the moment I'm using only one analog input, but later on my plan is to have about 3 analog inputs...
  14. Y

    PICkit2 not entering debug mode

    SOLVED...it had to do with the configuration..now its all ok
  15. Y

    PICkit2 not entering debug mode

    This is the output i get..I regulate the voltage with an LM7805, and my voltmeter says its 5.04..but PICkit2 says its only 4.98. Is that the problem? I first connected the PICkit2 without powering my dev board, and then I got the same error, but underneath it said that the target didnt have...

Latest threads

New Articles From Microcontroller Tips

Back
Top