Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/14/05 06:08
Read: times


 
Msg Score: -1
 -1 Off-Topic
#99366 - " Help me in completing my project"
My name is T.D.S.Varma. I am unable to complete my project in 8051 i.e, Microcontroller. I am unable to find some Library codes I think these are related to 8051 and 8052 mostly. If anyone find them please give me the website or the syntax of those functions. Kindly send the reply as early as possible.
my mail id is durgasrinivasvarma@yahoo.co.in


______________can you elaborate the library codes:_______________________



### uVision2 Project, (C) Keil Software
### Do not modify !

Target (Target 1), 0x0000 // Tools: 'MCS-51'

Group (Source Group 1)

File 1,1,<.main.c><main.c>
File 1,1,<.rx2fvlib.c><rx2fvlib.c>
File 1,2,<.rx2iaplib.a51><rx2iaplib.a51>


Options 1,0,0 // Target 'Target 1'
Device (8052 (all Variants))
Vendor (Generic)
Cpu (IRAM(0 - 0xFF) IROM(0-0x1FFF) CLOCK(12000000))
Rgf (REG51.H)
Mem ()
C ()
A ()
RL ()
OH ()
UseEnv=0
EnvBin ()
EnvInc ()
EnvLib ()
EnvReg (ÿGeneric)
OrgReg (ÿGeneric)
TgStat=0
OutDir (.)
OutName (kRx2FVLIBExample)
GenApp=1
GenLib=0
GenHex=1
Debug=1
Browse=0
LstDir (.)
RunUsr 0 0 <>
RunUsr 1 0 <>
MODEL5=0
RTOS5=0
ROMSZ5=2
DHOLD5=0
XHOLD5=0
T51FL=80
CBANKS5=0
XBANKS5=0
RCB51 { 0,0,0,0,0,0,0,0,0 }
RXB51 { 0,0,0,0,0,0,0,0,0 }
OCM51 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
OCR51 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
IRO51 { 1,0,0,0,0,0,32,0,0 }
IRA51 { 0,0,0,0,0,0,1,0,0 }
XRA51 { 0,0,0,0,0,0,0,0,0 }
C51FL=21630224
C51VA=0
C51MSC ()
C51DEF ()
C51UDF ()
INCC5 ()
AX51FL=4
AX51MSC ()
AX51SET ()
AX51RST ()
INCA5 ()
IncBld=1
AlwaysBuild=0
GenAsm=0
AsmAsm=0
PublicsOnly=0
StopCode=3
CustArgs ()
LibMods ()
BankNo=65535
LX51FL=292
LX51OVL ()
LX51MSC ()
LX51DWN (16)
LX51LFI ()
LX51ASN ()
LX51RES ()
LX51CCL ()
LX51UCL ()
LX51CSC ()
LX51UCS ()
LX51COB (0x0000)
LX51XDB (0x0000)
LX51PDB ()
LX51BIB ()
LX51DAB ()
LX51IDB ()
LX51PRC ()
LX51STK ()
LX51COS ()
LX51XDS ()
LX51BIS ()
LX51DAS ()
LX51IDS ()
OPTDL (S8051.DLL)()(DP51.DLL)(-p52)(S8051.DLL)()(TP51.DLL)(-p52)
OPTDBG 509,0,()()()()()()()()()() ()()()()
EndOpt

________________________________________________________________________________________________

// RX2IAPLIB Header File

#define SECURITY_BIT_1 0x02
#define SECURITY_BIT_2 0x04
#define SECURITY_BIT_3 0x08
#define SECURITY_BIT_1_SET(v) (v & SECURITY_BIT_1)
#define SECURITY_BIT_2_SET(v) (v & SECURITY_BIT_2)
#define SECURITY_BIT_3_SET(v) (v & SECURITY_BIT_3)

#define BLOCK_0 0x00
#define BLOCK_1 0x20
#define BLOCK_2 0x40
#define BLOCK_3 0x80
#define BLOCK_4 0xc0
#define BLOCK_0x0000_0x1FFF BLOCK_0
#define BLOCK_0x2000_0x3FFF BLOCK_1
#define BLOCK_0x4000_0x7FFF BLOCK_2
#define BLOCK_0x8000_0xBFFF BLOCK_3
#define BLOCK_0xC000_0xFFFF BLOCK_4

extern unsigned char iap_read_manufacturer_id(void);
extern void iap_init(unsigned char frequency);
extern unsigned char iap_read_device_id(unsigned char id_number);
extern unsigned char iap_read_security_bits(void);
extern void iap_program_security_bits(unsigned char bits);
extern unsigned char iap_program_data_byte(unsigned char val, unsigned int addr);
extern unsigned char iap_read_data_byte(unsigned int addr);
extern void iap_erase_block(unsigned char block);
extern void iap_erase_chip(void);
extern unsigned char iap_read_boot_vector(void);
extern unsigned char iap_read_status_byte(void);
extern void iap_erase_boot_vector_status_byte(void);
extern void iap_program_status_byte(unsigned char status_byte);
extern void iap_program_boot_vector(unsigned char boot_vector);



List of 2 messages in thread
TopicAuthorDate
" Help me in completing my project"            01/01/70 00:00      
   Library codes??            01/01/70 00:00      

Back to Subject List