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.

[SOLVED] I can not write PC28F128 NOR FLASH with assembly codes. Any experiences?

Status
Not open for further replies.

dashtibox

Newbie level 1
Joined
Aug 31, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
Hello
I am developing a system that needs to work with NOR FLASH PC28F128P33T85 Numonyx .
My codes are in assembly and following is some sample of the codes.
When i write and then read , it has not been written to the location.
Anybody can help me? any experiences is need on 28F128 Series NOR Flashes.
Datasheet is attached.By the way i have access to the chip and i can write by programmer manually.

Thank you.

Code:
			P0.L	=	0X0000;
			P0.H	=	0X2000;
			R0		=	W[P0];
			
			P1.L	=	0X0000;
			P1.H	=	0X2002;
			R1		=	W[P1];

			P2.L	=	0X00A0;
			P2.H	=	0X2000;
			R2		=	W[P2];
			
		
  			R0.L = LO (1000);	//	1ms
 			R0.H = HI (1000);
 			CALL DELAY1US;		
 			
			R2		=	0;
			R2.L    =   0X0060;	
			W[P2]	= 	R2;	
 			
			R2		=	0;
			R2.L      =   0X00D0;	
			W[P2]	= 	R2;							
			
  			R0.L = LO (1000);	//	1ms
 			R0.H = HI (1000);
 			CALL DELAY1US;
 			
 			
			R2		=	0;
			R2.L      =   0X0040;	
			W[P2]	= 	R2;	
						 	
			R0.L = LO (1000);	//	1ms
 			R0.H = HI (1000);
 			CALL DELAY1US;
 					
			R2		=	0;
			R2.L      =   0X00BB;	
			W[P2]	= 	R2;
							
  			R0.L = LO (1000);	//	1ms
 			R0.H = HI (1000);
 			CALL DELAY1US;
 						
			P2.L	=	0X00A0;
			P2.H	=	0X2000;
			R2		=	W[P2];

After writing i read just FFFF.
 

Attachments

  • Numonyx - PC28F128P33T85 ~ Datasheet.pdf
    1.3 MB · Views: 4
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top