Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

FAT File System for Microcontroller

Status
Not open for further replies.

grex

Newbie level 2
Joined
Sep 28, 2004
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
20
fat32 system + 8051

I´m trying to use the avrlib fat and ata files, but don´t know how to configure the pins of a atmega161, does anybody know how to configure the pin out??
The function that reads from the port is

u08 ataReadByte(u08 reg)
{
register u08 ret;
// sbi(MCUCR, SRW); // enable RAM waitstate
ret = *((volatile unsigned char*) ATA_REG_BASE + reg);
// cbi(MCUCR, SRW); // disable RAM waitstate
return ret;
}
but i dont know what ret = *((volatile unsigned char*) ATA_REG_BASE + reg); mean.
 

Bingo600

Full Member level 5
Joined
Aug 26, 2004
Messages
267
Helped
19
Reputation
38
Reaction score
6
Trophy points
1,298
Location
Cyberspace
Activity points
2,439
file system microcontroller

grex said:
I´m trying to use the avrlib fat and ata files, but don´t know how to configure the pins of a atmega161, does anybody know how to configure the pin out??
The function that reads from the port is

u08 ataReadByte(u08 reg)
{
register u08 ret;
// sbi(MCUCR, SRW); // enable RAM waitstate
ret = *((volatile unsigned char*) ATA_REG_BASE + reg);
// cbi(MCUCR, SRW); // disable RAM waitstate
return ret;
}
but i dont know what ret = *((volatile unsigned char*) ATA_REG_BASE + reg); mean.

*((volatile unsigned char*) ATA_REG_BASE + reg)

Is a pointer to the AVR I/O space , with reg as offset,

So that is the line that reads the I/O port , nad assigns the value to the var "ret"

/Bingo
 

ahmed_abdelhamid

Newbie level 2
Joined
Dec 31, 2004
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
18
8051 fat

Hello,
you can get ucos from emule , just search for it.
I don't know if all ucos versions got the fs or not, but
u can get ucos for all controllers from emule.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top