| Purpose: | Output a single character (CHAR) to the serial port. | |||
| Assumes: | Values less than 7 are unprintable, as is the value 255. | |||
| Passed: | R24 | CHAR | cValue | the character to print (or enbuffer) |
| Returns: | R24 | CHAR | cValue | the same cValue that was passed in R24, unchanged |
| Alters: | Only the FLAGs (SREG) and the COM1 Transmit buffer | |||
| Example: |
|
||||
| Test it: |
| ||||
| Notes: | This is a "wrapper" around the COM1_Write1CHAR routine, which does not preserve R25, R26, R27, R30, or R31. | ||||
| Any CHAR value from 7 through 254 is output, so non-standard ASCII characters (those above 127) may be printed. | |||||
| The value 255 (= 0xFF) is discarded since it likely was read from an area of uninitialized FLASH. | |||||
| As with the other Print functions, this function can block. | |||||
| Dropin: (setup code) |
; Setup for the PrintCHAR() call: ; Passed: R24 CHAR cValue to print in binary format ; Returns: R24 CHAR cValue, unchanged ; Alters: the FLAGs and the COM1 Transmit Buffer | ||||
| Also see: | The System Functions PrintBYTE, Print0xPrefix, the PrintBYTE family, and the PrintWORD family. | ||||