<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/8254" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-02-02T00:28:17+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/8254</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-02-02T00:28:17+02:00</updated>

		<published>2013-02-02T00:28:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8254&amp;p=24671#p24671</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8254&amp;p=24671#p24671"/>
		<title type="html"><![CDATA[Re: v-usb on atmega32(help me)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8254&amp;p=24671#p24671"><![CDATA[
I solved a problem.<p>Statistics: Posted by Guest — Sat Feb 02, 2013 12:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-02-01T12:33:48+02:00</updated>

		<published>2013-02-01T12:33:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8254&amp;p=24668#p24668</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8254&amp;p=24668#p24668"/>
		<title type="html"><![CDATA[v-usb on atmega32(help me)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8254&amp;p=24668#p24668"><![CDATA[
pcb login : <!-- m --><a class="postlink" href="http://img843.imageshack.us/img843/8451/47320332.gif">http://img843.imageshack.us/img843/8451/47320332.gif</a><!-- m --><br /><br /><br /><br />hi everyone~<br /><br />im working to make keyboard from V-USB.<br />but that has few problem.<br /><br />check up plz.<br /><br /><br />&lt;main.c&gt; my code :<br />this code is can't input<br /><br />PORTA = 0xFF;   /* Port A = J4 pins 1-8 - enable pull-up */<br />DDRA  = 0x00;   /* Port A is input */<br />PORTB = 0xFF;   /* Port B = J3 pins 1-8 - enable pull-up */<br />DDRB  = 0x00;   /* Port B is input */<br />PORTC = 0xFF;   /* Port C = J4 pins 9-16 - enable pull-up */<br />DDRC  = 0x00;   /* Port C is input */<br />PORTD = 0xF8;   /* 1111 1000 bin: LED on PD3,4,5 ROW17,18 on PD6,7 */<br />DDRD  = 0x07;   /* 0000 0101 bin: these pins are for USB output */<br />/* USB Reset by device only required on Watchdog Reset */<br />_delay_us(11);   /* delay &gt;10ms for USB reset */ <br />DDRD = 0xF8;    <br />TCCR0 = 5;      /* timer 0 prescaler: 1024 */<br /><br />....................<br /><br />switch (row) {<br />case 0x0:<br />// Port C to weak pullups<br />DDRC  = 0x00;<br />PORTC = 0xFF;<br />case 0x1 ... 0x7:<br />// Scan on A<br />DDRA = data;<br />PORTA = ~data;<br />break;<br />case 0x8:<br />// Port A to weak pullups<br />DDRA  = 0x00;<br />PORTA = 0xFF;<br />case 0x9 ... 0xF:<br />// Scan on C<br />DDRC = data;<br />PORTC = ~data;<br />break;<br /><br />case 0x10 ... 0x12:<br />// Scan on D<br />DDRD = data;<br />PORTD = ~data;<br />break;<br />}<br /><br />data = PINB;<br /><br /><br />&lt;main.c&gt; my code :<br />this code can input<br /><br />PORTA = 0xFF;   /* Port A = J4 pins 1-8 - enable pull-up */<br />DDRA  = 0x00;   /* Port A is input */<br />PORTB = 0xFF;   /* Port B = J3 pins 1-8 - enable pull-up */<br />DDRB  = 0x00;   /* Port B is input */<br />PORTC = 0xFF;   /* Port C = J4 pins 9-16 - enable pull-up */<br />DDRC  = 0x00;   /* Port C is input */<br />PORTD = 0xF8;   /* 1111 1000 bin: LED on PD3,4,5 ROW17,18 on PD6,7 */<br />DDRD  = 0x07;   /* 0000 0101 bin: these pins are for USB output */<br />/* USB Reset by device only required on Watchdog Reset */<br />_delay_us(11);   /* delay &gt;10ms for USB reset */ <br />DDRD = 0xF8;    <br />TCCR0 = 5;      /* timer 0 prescaler: 1024 */<br /><br />.................<br /><br />switch (row) {<br />case 0x0:<br />// Port C to weak pullups<br />DDRC  = 0x00;<br />PORTC = 0xFF;<br />case 0x1 ... 0x7:<br />// Scan on A<br />DDRB = data;<br />PORTB = ~data;<br />data = PINA;<br />break;<br />case 0x8:<br />// Port A to weak pullups<br />DDRA  = 0x00;<br />PORTA = 0xFF;<br />case 0x9 ... 0xF:<br />// Scan on C<br />DDRB = data;<br />PORTB = ~data;<br />data = PINC;<br />break;<br />}<br /><br /><br /><br />i think first code is right on pcb<br />but first code is can't input.<br /><br />help me plz.<p>Statistics: Posted by Guest — Fri Feb 01, 2013 12:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
