Skip to content

make arduino tvout initial release work into atmega32 #95

Open

Description

@GoogleCodeExporter
Hi Guys

I'd like to improve my understanding about coding.  i am really stuck working 
tvout library to atmega32.

id like to start basic which is the tvout initial release to help understand 
things step by step.

i believe that the tvout initial release work at atmega328 using the pin 9 and 
8.

so this are the pin configuration
//setup the ports

DDRB |= 0x03;
PORTB &= ~0x02;
PORTB |= 0x02;

// inverted fast pwm mode on timer 1
   TCCR1A = _BV(COM1A1) | _BV(COM1A0) | _BV(WGM11);
   TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS10);
   ICR1 = CYCLES_SCANLINE;
   OCR1A = CYCLES_HORZ_SYNC;
   OCR1B = CYCLES_OUTPUT_START-20;


how to make it work with the atmega32 which is PD5 is OCR1A and PD6?

sorry for my english =D

hope someone help me.


thanks

Original issue reported on code.google.com by darwins...@gmail.com on 6 Aug 2015 at 10:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions