Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
adc collection
How would the comparator trigger the ADC, based on what changes?
Why not set up a timer and read the ADC evry x ms or seconds? This is what I would do. Set up a timer to generate an interrupt and when that happens read the ADC.
Re: PIC Siren Generator
OK, two more lines missed. I should have posted my code instead of trying to patch yours.
movlw TMR0_RLD ;init TMR0
movwf TMR0 ;
movlw _200ms ;set timer for 200ms
movwf Timer ;
Insert all 4 lines after the option...
avr program
The ATTiny2313 only has 128 bytes of RAM, so it does not need a 16-bit register to access that. Therefore it does not have an SPH register, which is why you are getting the error. Comment out those lines that initialize SPH.
Re: amplifier problem
I think your problem is the missing 0V connection. In this schematic it is used to balance the internal circuitry (my guess is pin 2 does that). And then pin 4 has to be referenced to 0V.
So you will have to add it somehow. The easiest way to do it is to use a...
pic sirene generator
Sorry, I missed two lines that initialize TMR0.
Insert these two lines right after the option instruction.
movlw TMR0_RLD ;init TMR0
movwf TMR0 ;
Re: plz help!
I did not think it was necessary to recognize the modem. All you should be doing is serial communication
MAX-232 should simply be connected to the PC: TxD to RxD on both ends, that's all. The MAX232 is just the interface between the PC and your MCU.
piezo sirene schematic
You cannot create delays like that, as they consume too much processor time.
Here is what I came up with. This is the code you had before and I assume it worked. I added a few things to it. Note the option instruction, used to set up the option register.
list...
You can build an LC oscillator and place a varicap diode across the inductor. Put a fairly large cap in series with the varicap. Feed the modulating voltage to the cathode of the varicap through a large resistor, such as 100k. Thei will give you a relatively decent FM modulated oscillator...
measure quiescent current
The configuration does not matter, it can bei either.
Make sure the loads are infinite. The inputs can be grounded, if the inputs are allowed to go to GND. Else, bias them properly.
Re: plz help!
The lines should be high only when idle, which is most of the time, but when there is data there should be pulses going to 0V. You can only see those with a scope, not with a meter.
Connect the MAX232 directly to the PC's serial port. You should then be talikg to the micro...
Re: plz help!
From your reply I don't understand if anything worked.
Can you be more specific? Did you manage to establish communication between the uC and the modem?
Did the Hyperterminal connection work? This would help eliminate all issues associated with the USB-RS-232 converter.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.