📄 bascom and avr, control a philips fi1216 tuner.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0062)http://www.qsl.net/pa3ckr/bascom%20and%20avr/fi1216/index.html -->
<HTML><HEAD><TITLE>Bascom and AVR, Control a Philips FI1216 tuner</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<P>
<HR>
<H3>Bascom and AVR, Control a Philips FI1216 tuner</H3>
<HR>
A small AVR program to control a <A
href="http://www.vandijkenelektronica.nl/site/preview.php?index=486&table=files">Philips
FI1216 tuner</A> . The main purpose being to extract the internal VCO signal
(using a small pickup loop near the VCO). <BR>A PCF8574 eight-bit I/O expander
is used to read seven buttons:<BR>- Fup : increases VCO frequency<BR>- Fdn :
decreases VCO frequency<BR>- Stup: increases frequency step value<BR>- STdn:
decreases frequency step value<BR>- Mem : cycles through three memories<BR>- Sto
: stores current VCO frequency in current memory<BR>- Rcl : recalls current
memory frequency to VCO<BR>Although I have defined only three memories, you can
easily modify the program to use more.<BR>If the ATMega8 is powered up while one
one the buttons is pressed, three default frequencies are written to the threee
memories: 200, 250 and 300MHz. You MUST perform this initial action at least
once otherwise the VCO frequencies are undefined!<BR>The FI1216 VCO's minimal
step frequency is 50kHz. By using the Fstup and Fstdn buttons, the frequency
step can selected from the series: 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10MHz.<BR>The
LCD shows the current VCO frequency and frequency step on the first line. PLL
locking is indicated using the "L" character at the end of the first line. If
after a certain number of retries, the PLL does not show a lock condition, the
"N" character is shown. <BR>The second line shows the current memory content. If
the Mem button is pressed, the memory number is cycled through the numbers 1, 2
and 3. The current VCO frequency shown on the first line can be stored in the
current memory shown on the second line using the Sto button. Also, the content
of the current memory can be recalled using the Rcl button and sent to the
VCO.<BR><BR>The schematic:<BR><IMG
src="Bascom and AVR, Control a Philips FI1216 tuner.files/avr-fi1216.gif"><BR><BR>shows
the ATMega8 with the I/O expander, the LCD and the FI1216 tuner. I started out
with an AT90S2313, hence the I/O expander. The AT90S2313 proved to be just a bit
too small to contain the<BR><A
href="http://www.qsl.net/pa3ckr/bascom%20and%20avr/fi1216/avr-fi1216-06.bas">program</A>
, so I used an ATMega8. If you want, you can omit the I/O expander and use the
free pins on the ATMega8 to read the buttons.<BR><BR>The FI1216 can also be
controlled using a PC with a simple <A
href="http://www.qsl.net/pa3ckr/1216tuner/index.html">QBASIC program</A>.<BR>
<HR>
<A href="http://www.qsl.net/pa3ckr/index.html">TOC</A><BR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -