CmdMemWrite
From MCS Wiki AVR
(Difference between revisions)
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = Write bytes into memory. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <span c...")
(Created page with "= <span class="f_Header">Action</span> = Write bytes into memory. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <span c...")
Latest revision as of 19:22, 12 December 2014
Contents |
Action
Write bytes into memory.
Syntax
CmdMemWrite ptr, num,
Remarks
ptr |
The memory address to be written |
result |
Number of bytes to be written |
The data byte should immediately follow in the command buffer. If the number of bytes is not a multiple of 4, then
1, 2 or 3 bytes should be appended to ensure 4-byte alignment of the next command, these padding bytes can have any value.
The completion of this function can be detected when the value of REG_CMD_READ is equal to REG_CMD_WRITE.
Caution: if using this command, it may corrupt the memory of the FT800 if used improperly.
Example
' Pseudocode ' To change the backlight brightness to 64 (half intensity) for a particular screen shot ... CmdSwap ' finish the display list CmdDlStart ' wait until after the swap CmdMemWrite REG_PWM_DUTY, 4 ' write to the PWM_DUTY register
Languages | English |
---|