Tag: 32-bit

32 bit integer to 4 bytes

Squirrel on Electric Imp #require “JSONEncoder.class.nut:2.0.0” local number = 1523187384; local record = array(4); local result = 0; local byteArray = array(4); local record2 = array(4); local result2 = 0; local byteArray2 = array(4); // method 1 and before shift right record[0] = ((number & 0xff000000) >> 24); record[1] = ((number & 0x00ff0000) >> 16); […]

PIC24 or PIC32?

I’m on a journey of learning and need to make a decision on which way I go first. When I ordered my Explorer16 board, I also ordered the PIC32MX460F512L PIM, a 32-bit USB capable 100pin chip for the Explorer 16. I also ordered a couple of books from Amazon but they look to be still […]