TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (405 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (133 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (141395 times)
  2. FAT32 Library (74228 times)
  3. Network Ethernet Library (58787 times)
  4. USB Device Library (48855 times)
  5. Network WiFi Library (44620 times)
  6. FT800 Library (44167 times)
  7. GSM click (30889 times)
  8. mikroSDK (29752 times)
  9. PID Library (27373 times)
  10. microSD click (27312 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

2s complement using s+7+8 bit format for fractional values

Rating:

0

Author: dangerous

Last Updated: 2025-05-14

Package Version: 1.0.0.0

Category: Measurement

Downloaded: 21 times

Not followed.

License: GNU General Public License (GPL)  

When trying to read a TCN 75A tempertaure sensor, the result is 2 bytes in 2's complement format.
This example shows how to take the 2 bytes and translate to text values for an LCD Display or uart in
Mikrobasic. Max resolution is 0.0625 degree defined by TCN75.
Based on EasyPic7 and 18F45K22

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "2s complement using s+7+8 bit format for fractional values" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "2s complement using s+7+8 bit format for fractional values" changes.

Do you want to report abuse regarding "2s complement using s+7+8 bit format for fractional values".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

Blog currently doesn't exist!

ALSO FROM THIS AUTHOR

OLED16x2 Library

5

Enables 16x2 OLED from Winstar to boot correctly from cold or warm resets

[Learn More]

Bootloader_16E

5

Use for bootloader with 16F1XXX range of enhanced micros. Can use RS485 full or half duplex/ 422 / 232

[Learn More]

Improved Winstar 16x2 OLED routines

5

Demonstrates graphics and character capabilities. Covers programmable graphics mode 100x16 and CGRAM usage in character mode. Also shows use of external command and defines constant 2D array. Uses MB LCD routines except for LCD_Init(). Fully portable port pins compatible with EasyPic 4 / 7 connections. Shows full set of font tables (4 total).

[Learn More]