
478
Example:
Overwrite operation
Incoming data: 1024 bytes ("0123456789..........0123")
Receive buffer: 8 elements, 128 characters each for a total of 1024 bytes
• After initializing receive buffer
• After receiving first 512 bytes
• After receiving remaining 512 bytes
Element 0
Element 7
–
• • • • • • • •
[ Strings ]
1
2
3
4
5
125 126 127 128
–
–
–
–
–
–
–
–
–
• • • • • • • •
–
–
–
–
–
–
–
–
Element 0
Element 7
‘0’
• • • • • • • •
1
2
3
4
5
125 126 127 128
‘1’ ‘2’ ‘3’ ‘4’
‘4’ ‘5’ ‘6’ ‘7’
–
• • • • • • • •
–
–
–
–
–
–
–
–
‘8’
• • • • • • • •
‘9’ ‘0’ ‘1’ ‘2’
‘2’ ‘3’ ‘4’ ‘5’
‘4’
• • • • • • • •
‘5’ ‘6’ ‘7’ ‘8’
‘8’ ‘9’ ‘0’ ‘1’
–
• • • • • • • •
–
–
–
–
–
–
–
–
Element 1
Element 3
Element 4
[ Strings ]
Element 0
Element 7
‘2’
• • • • • • • •
1
2
3
4
5
125 126 127 128
‘3’ ‘4’ ‘5’ ‘6’
‘6’ ‘7’ ‘8’ ‘9’
–
• • • • • • • •
–
–
–
–
–
–
–
–
‘0’
• • • • • • • •
1’
‘2’ ‘3’ ‘4’
‘4’ ‘5’ ‘6’ ‘7’
‘6’
• • • • • • • •
‘7’ ‘8’ ‘9’ ‘0’
‘0’ ‘1’ ‘2’ ‘3’
–
• • • • • • • •
–
–
–
–
–
–
–
–
Element 1
Element 3
Element 4
Second half
overwrites first.
[ Strings ]
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...