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.
Hi,
You forgot bank addressing... You have to change to bank1 to access ADRESL.
Something like this:
movf ADRESH, W
movwf Hi
bsf STATUS, RP0 ;ADRESL is in the BANK1
movf ADRESL, W ;Get A/D result (low byte)
bcf STATUS, RP0
movwf Lo
Hi:Lo contains your ADC. HTH.
Regards,
Admir.
Original author's web page (in japanese, you can translate it in Google) is here:
www.picfun.com/equipj62.html
No need to post files available on the web.
pic digital potentiometer code
That's where my problem is. I wouldn't purchase big quantities, perhaps 100 or 200.
@cyberblak: I can't go analog mux route, my pcb will have 24 inputs... too complex.
Hmm... there must be a cheaper way of doing this :-)
proteus mcp42050
I'm looking for a cheap digital potentiometer, for opamp gain control.
The requirements for the design are: single supply 0-5V, SPI daisy-chained or I2C, 64-256 taps, independent A B and W terminals, 50-100k.
I was looking at datasheets from: Microchip MCP42050, Maxim...
You are new to datasheets, eh? ;)
If you wish to write to CODEC, then you need to write 16 bits this way (see attached picture from datasheet):
D0..7: data to write
D8..D12: address of the CODEC register to write
D13: read/-write bit (=0 for write operation)
D14..D15: reserved (=0)
So, for...
There is no "more complet datasheet", you just need to look between the lines :)
So... from the actual datasheet:
You must realize that when you send audio data with bit0=1, it tells si3000 that the next word you send is the secondary frame data. In your example:
0x7FFF has bit0=1, means...
What development board are you using? What is the CODEC are you using? :)
If you are using dsPICDEM board, Si3000 datasheet (CODEC onboard) is included in the CD. You will find "meaning of this numbers" there ;)
Not now, look at the new PIC18F series for example, it has internal x4 PLL inside.
And new dsPIC series have x4, x8 and x16 PLL. For those devices if you have for example 6MHz crystal you can internally multiply it x16, reaching 96MHz.
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.