LCD_Simulator_Manual_V01_E

  • 格式:pdf
  • 大小:276.40 KB
  • 文档页数:9

SONiX 8-Bit Micro Controller M2IDE / SN8IDELCD Simulator Users’ ManualDate: 2005/08/11REVISION HISTORYVersion Date DescriptionVER 0.1 2005/08/11 First issue1. LCD Simulator FunctionLCD Simulator Function is helpful to develop LCD program without real LCD panel. Because LCD Simulator Function show the relevant Segment-Comment of LCD panel through reading the LCD RAM in ICE, and this function could only be execute normally after Initial ICE necessary.LCD Simulator operation in normal steps as follow:1. Before Initial ICE, Enable option will be inhibited.2. Firstly Compile Assembly code that chip built-in LCD driver. After Initial ICE, Execute Utility -> LCD Simulator -> BMP Edit/load LCD Segment-Comment information, and then will open the two options about Enable.Notice: BMP Edit methods please refer to the BMP Edit Function description as following text.3. Execute Utility -> LCD Simulator -> Enable -> Refresh LCD at ICE stop/Refresh LCD per 250ms, open LCD Simulator function. If one of options about Enable is selected, BMP Edit will be closed..The two options about Enable and function are as below:a. Refresh LCD at ICE stop: At ICE stop, refresh LCD panel image, for example:after single step, free run stop ICE or break point, will refresh LCD panel. Notice: once this mode is selected, when ICE Free-Run, LCD panel image will not refresh.b. Refresh LCD per 250ms: At ICE free run, will stop ICE temporarily every other250ms refresh LCD panel image. Notice: this mode, owing to stop temporarily every other 250ms and read LCD RAM data. This option will change the program execute timing of ICE. It is suggested that only used to observe the various image on LCD panel.4. Execute Single step or Free run.5. When Disable is selected or compiled newly, then will open BMP Edit and close Enable option, and return to step 1.2. BMP Edit Function1. Execute Utility -> LCD Simulator -> BMP Edit (select*.BMP file, ending edit will save to *.LCD file) or load(select *.LCD file) LCD Segment-Comment information。

2. The BMP editor window as following:X: Now cursor appoints X coordinate.Y: Now cursor appoints Y coordinate.Zoom: size of edit area appointedSimulation Size: LCD panel size when Simulation LCD is appointed.SEG: appoint present editing SegmentCOM: appoint present editing Segment Comment.MAX COM: Now the largest Comment NO that could be edited.During editing, press the left mouse key to appoint Segment-Comment, press the right mouse key to cancel the Segment-Comment appointment.Appoint Segment-Comment methods:At Same Point: after editing a Segment-Comment, keep present Segment and Comment NO.Auto-Inc. SEG: after editing a Segment-Comment, Segment No will be added 1 (when pressing the left mouse key, the editing Segment will notbe added 1 automatically) , Comment amount will not change Auto-Dec. SEG: after editing a Segment-Comment, Segment No will be subtracted1 (when pressing the left mouse key, the editing Segment will notbe subtracted 1 automatically), Comment amount will not change. Move-Inc. SEG: when pressing the left mouse key, the editing Segment will be added 1 automatically, Comment amount will not change.Move-Dec. SEG: when pressing the left mouse key, the editing Segment will be subtracted 1 automatically, comment amount will not change.Auto-Inc. COM: after editing a Segment-Comment, Comment will be added 1(when pressing the left mouse key, the editing Comment will notbe added 1 automatically), Segment amount will not change.Auto-Dec. COM: after editing a Segment-Comment, Comment will be subtracted 1 (when pressing the left mouse key, the editing Comment will notbe subtracted 1 automatically)Auto-Dec. COM: after editing a Segment-Comment, Comment No will be subtracted 1(when pressing the left mouse key, the editingComment will not be subtracted 1 automatically), Segmentamount will not change.Move-Inc. COM: when pressing the left mouse key, the editing Comment will be added 1 automatically, Segment amount will not change.Move-Dec. COM: when pressing the left mouse key, the editing Comment will be subtracted 1 automatically, Segment amount will not change.3. The gray parts in editing area show that Segment-Comment has already been appointed; the red parts show that Segment-Comment is editing now, and black parts show that Segment-Comment has not been appointed yet. After editing, and press OK Key, will take the editing Segment-Comment information to save to *.LCD file.3. Important Notice1. LCD Simulator Function is added newly in M2IDE_V106 and SN8IDE V.199U,therefore only these versions and the latter IDE versions have the LCD Software Simulator Function.2. Demo code is written merely for testing LCD Software Simulator, and has not setup register relevant hardware circuit, only as reference. In actual application, should base on the factual situation to set up relevant register. Demo code is under the directory of samples that on the path of IDE installing.3. When Refresh LCD per 250ms is chosen, in free run, LCD Software Simulatorwill refresh one time per 250ms.Within 250ms; LCD Software Simulator could not refresh the LCD Display data in real-time.。