This code is from this : http://people.msoe.edu/~mohre/FinalReport.pdf
and page 17
Anyone know how to control this chip (BH1415) ;
This code is from this : http://people.msoe.edu/~mohre/FinalReport.pdf
and page 17
Anyone know how to control this chip (BH1415) ;
Last edited by savnik; - 7th July 2007 at 19:43.
Do you not have the bh1415f datasheet?
It explains how to set the frequency in there...all easily done with PBP's SHIFTOUT commands...
bits 0 - 15
1,0,1,1,1,1,1,1,1,1,0,1,0,0,1,0
bits 0-10 = frequency, in this case 102.1Mhz
bit 11 = mode, in this case stereo
bits 12-13 = phase detector operation, in this case normal
bits 14-15 = test mode, in this case normal operation
It's right there on the last 2 pages of the bh1415f datasheet from ROHM.
Last edited by skimask; - 7th July 2007 at 20:01.
I have the bh1415f datasheet and i have read , but i don't know how to send the data to bh1415f , because this chip has data,clock and enable
For the TSA551 i don't have problem.I have use it many times , but this have only data and clock and use I2CWRITE SDA,SCL,ADDR1,[HI,LO,$8E] to send the data
Last edited by savnik; - 7th July 2007 at 20:26.
I have understand , but i don't have use before the command shiftout.
Code:Include "modedefs.bas" datapin var PORTB.0 clockpin var PORTB.1 enablepin var PORTB.2 dataout var word dataout = %1011111111010010 high enablepin shiftout datapin , clockpin , 0 , [ dataout\16 ] low enablepin
Last edited by savnik; - 7th July 2007 at 22:16.
Code:freq var word dataout var word hardcode var word chipselect var portb.0 'or whatever pin you've got set for the chip select datapin var portb.1 'or whatever pin you've got set for the data pin clockpin var portb.2 'or whatever pin you've got set for the clock pin hardcode = %0100100000000000 'hardcoded values - not in test mode, phase detector normal, stereo operation, doesn't (shouldn't?) change freq = 1021 'frequency desired = 102.1 Mhz dataout = hardcode + freq 'add in frequency value high chipselect shiftout datapin , clockpin , 0 , [ dataout/16 ] low chipselect
Bookmarks