Re: Comment on TODO in uniboard

5 views
Skip to first unread message

unib...@googlecode.com

unread,
Nov 18, 2009, 4:11:33 AM11/18/09
to openun...@googlegroups.com
Comment by ppuru23:

this is purushottam,training at Trii Technosolution pvt ltd on sunday
batch.My sir is Hardik shah
I am working on uniboard1.1 version RS232 protocol & program is written on
window.
while compiling the program i.e written in winAVR20080402rc1 ,make clean it
compiles but when "make all" is clicked it shows an error: "no rule to make
target 'Main_led.elf",needed by 'elf'.

MY Program is ::::
#include<avr/io.h>

#define LEDPORTDIR DDRC
#define LEDPORTPORT PORTC

void LED_Init(void)
{
LEDPORTDIR = 0xFF;
LEDPORTC =0xFF;
}
int main(void)
{
volatile unsigned char idelay;
volatile unsigned int idelay;
LED_Init();
while(1)
{
for(idelay=0;idelay<10;idelay++)
for(jdelay=0;jdelay<60000;jdelay++);

LEDPORT = LEDPORT ^ 0xFF;
}

}
please let me know the error..

2)what is the use of parity bit ,when transmitting a data?
3)what is the differece between UART & TTL?
4) C programming normally start from int main(),but in embedded C void
main(void) is used ? please let me know about this



For more information:
http://code.google.com/p/uniboard/wiki/TODO

Jaikishan Daryanani

unread,
Nov 18, 2009, 4:35:41 AM11/18/09
to openun...@googlegroups.com
1) make sure the make file is in the same folder where the .C file is located.
If the Make file is where it is suppose to be ,then there may be some errors in the make file.
please find attached herewith a copy of a make file for windows.

2) The parity bit is used when error detection in the transmitted data is required. there are two kinds of parity even and odd which indicates the number of 1's in the data to be transmitted.

3) UART is a hardware which uses RS232 to communicate to other devices. TTL/CMOS is a class of digital circuits ie it usually means the logic which is understood by digital devices which is different from RS232. Hence we use MAX232 to convert the logic.

4) int main(void) and void main (void) almost mean the same. It depends on the compiler that you use. GCC requires main() to have a return type hence its always

int main(void)
{
-----------
----------
return 0;
}




On Wed, Nov 18, 2009 at 2:41 PM, <unib...@googlecode.com> wrote:
Junk Score: 3 out of 10 (below your Auto Allow threshold) | Approve sender | Block sender | Block domain



--
Jaikishan Daryanani
+91-9819689329
www.thinklabs.in
http://code.google.com/p/uniboard/


Makefile

unib...@googlecode.com

unread,
Nov 18, 2009, 4:52:13 AM11/18/09
to openun...@googlegroups.com
Comment by saurabhg84:

Hello Pushottam,

Kindly find the reply to your queries:

1) make sure the make file is in the same folder where the .C file is
located.
If the Make file is where it is suppose to be ,then there may be some
errors in the make file.
please find attached herewith a copy of a make file for windows.

2) The parity bit is used when error detection in the transmitted data is
required. there are two kinds of parity even and odd which indicates the
number of 1's in the data to be transmitted.

3) UART is a hardware which uses RS232 to communicate to other devices.
TTL/CMOS is a class of digital circuits ie it usually means the logic which
is understood by digital devices which is different from RS232. Hence we
use MAX232 to convert the logic.

4) int main(void) and void main (void) almost mean the same. It depends on
the compiler that you use. GCC requires main() to have a return type hence
its always

int main(void)
{
-----------
----------
return 0;
}

Also NOTE that this is not the correct place to post your queries, you can
instead join the openuniboard google groups. Use this link for the same:
http://groups.google.com/group/openuniboard

unib...@googlecode.com

unread,
Jul 13, 2010, 10:00:02 AM7/13/10
to openun...@googlegroups.com
Comment by degalatejas:

sir the website you mentioned in the 32bit atmega review is not working

Reply all
Reply to author
Forward
0 new messages