ATTiny2313 and I2C TV tuner

Go To Last Post
27 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How to use ATTiny2313  or ATMega8A for VSTA1SPL (Sharp, with Toshiba TD6358P or eqivalent) TV  I2C tuner control (for example , for receiving repeaters 144.000-145.750  , 431.000-438.750 MHz, 3 band RF-scanner ) with LED 7 segments or 1602 display (English)? How to flash 2-nd IF, 1st IF for device or how to use it for 90 channel TV programm switcher?

 

Last Edited: Fri. Nov 24, 2017 - 12:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Surely, that will all be described in the documentation for the VSTA1SPL  ?

 

As far as the ATTiny2313  or ATMega8A (or any other microcontroller, for that matter) is concerned, it's just a matter of sending & receiving bytes over I2C.

 

Here, Fleury is the widely recommended library for I2C ...

 

EDIT

 

As you seem to be flooding the forum with "How do I interface to X" questions, see: How To Interface Anything To Anything Else.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Fri. Nov 24, 2017 - 12:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What's more you have been doing it in the wrong forum. The "projects" section is for announcing new (complete) projects you have posted. Please do not use it for posting new threads.

 

Also surely you could have asked all the questions in a single thread?

 

Moderator

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is a I2L tuner (pseudo -TWI), but  this is a not I2C 8 *3 bit with ACK bits ( using I2C_Init_Master(); I2C_Start(); I2C_SendByte(Addr); I2C_SendByte(Data1); I2C_SendByte(Data2);  ...  I2C_Stop();  ).

Examples  of units for data sending tgo tuner are in the attach

Using bitbang   mode ,pins OE, CLK,DATA as output  

divtd.cpp (1.15 KB)   utility for obtaining Fosc

send.cpp (1.68 KB)   emulator of sending  for DevC++ or console VS2005...2015 with patching to  _tmain() and adding #include "stdafx.h" for compiling console application

Could not understand how to select bands for frequency from datasheet (VHF-L,VHF-H,UHF     , ... ), how to use for S bands, Hyperband bands  (for similary tuners with this IC, but not this type of tuner )(this is a tuner for 1-12 ch, 1,2 S-band, UHF 21-80 ch. ?)? 

 

 

Attachment(s): 

Last Edited: Thu. Jan 4, 2018 - 11:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That datasheet is from 1999.  Is the part even still available?  And there isn't a more modern device?

 

Also the Tiny2313 is probably too small a device to handle what you want to do.  The Mega8A might just make it.  I am talking about program Flash size that is

 

JIm

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Clearly this part is not twi/i2c - it is more like spi.

Also, you’re not supposed to put code in a .h file!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

presumably also for analogue TV, then?

 

do you still have that?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
Clearly this part is not twi/i2c

Indeed.

 

In fact,  TWI/I2C is not claimed nor even mentioned anywhere in the document.

 

It does say that the logic is "I2L" - but that is something entirely different.

 

Kartman wrote:
you’re not supposed to put code in a .h file!

Indeed not.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

There was mention of the amateur radio bands in the OP.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Such tuners have been used as VHF/UHF spectrum analyzers and scanners, largely by hams. Surely, there must be examples out there. Have you tried Your Friend Google with something like: interfacing VSTA1SPL

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

ka7ehk wrote:

Such tuners have been used as VHF/UHF spectrum analyzers and scanners, largely by hams. Surely, there must be examples out there. Have you tried Your Friend Google with something like: interfacing VSTA1SPL

 

Jim

 

I did it for the OP....guess what came back?

 

We are teh ONLY game in town!  Boo-YAH!

 

Eastern seaboard Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign wrote:
Boo-YAH!
Watching to much Cramer on Mad Money... A big Boo-Yah right back at ya!

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Pin 13 of IC ( see dastasheet TD6358P ) in VTSA1SPL is unused, BS=0b0001 for BL band, BS=0b0010 for BH band(for repeater R0 145,600 MHz+38MHz or -38MHz ),  BS=0b1000 for BU (UHF band, from 21 ch. )

 

18-OE (left)

17-Data 

16-CLK

 

13-nLock

12-+5V PLL

11- BT +33 V

 

 

8 IF out (38-31.5 MHz)

 

7 +B 12V

6 AFT (not connected)

5 BL

4 AGC

3 BH

2 VT

1 BU (near the Ant. input connector ,right)

 

 

Attachment(s): 

Last Edited: Sun. Jan 7, 2018 - 05:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SendToVTSA1SPL_TD6358_v2.h (2.39 KB)  subroutines (fix IF frequency parsing and bands limits )

send1.cpp (2.9 KB)  emulator for DevC++ (may be compiled with VS2005Express ...VS2017  as console application with changing main to _tmain , patching of  heders list  (stdafx.h style) )

 TD_SEND_EMUL.zip (2.34 MB)  version of emulation for VS2005 Express 

Attachment(s): 

Last Edited: Mon. Jan 8, 2018 - 09:44 PM