Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

XRAM data is always wrong!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
sunw2004

Bascom Member



Joined: 28 Jan 2006
Posts: 82

china.gif
PostPosted: Tue Dec 16, 2008 12:46 pm    Post subject: XRAM data is always wrong! Reply with quote

Hello
I encountered a problem

This program result in the setting XRAM not use, data error

However, removing the XRAM on the set, compiler bring their own set of projects, XRAM normal, why? Selected "XRAM WAITSTATE" ,Selected "EXTERNAL ACCESS ENABLE" XRAM Selected 32K



I was problems TO set up XRAM ?
BASCOM 1.11.9.3.001

$regfile = "m64def.dat"
$crystal = 11059200
$baud = 9600 'set the baud rate for the first hardware UART.
$baud1 = 1200 'set the baud rate for the second hardware UART.
'
$hwstack = 260 '60
$swstack = 260 '60
$framesize = 512 '110

'$xramstart = &H1000 'THIS IS SET XRAM
'$xramsize = &H8000
'$xa
'$waitstate

DIM A(255) AS XRAM BYTE
DIM I AS BYTE

FOR I=1 TO 255

A(255)=I

NEXT I

PRINTBIN A(1),255

END[/code]
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum