View Single Post
  #2   Spotlight this post!  
Unread 29-10-2005, 19:18
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: Hex file downloads

The data in the hex file is the instructions that the processor reads.

Take the following instruction for instance:
Code:
clrf 0x2C
That tells the processor to clear address 0x2C (set it to zero). According to the datasheet (Table 24-1), that insturction is the following in binary:

Code:
0110 1010 0010 1100
in hex:

Code:
6A 2C
If you were to find that instruction in a piece of code somewhere, the hex file for that code would have 6A 2C whereever the instruction is supposed to go.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------