Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/18/04 11:11
Read: times


 
#77630 - RE: About CRC-16
Responding to: ???'s previous message
CALL CRC16_INIT
CALL CRC16_ADD
CALL CRC16_GET


Before making call to CRC16_ADD you need to put the data byte in Accumulator for instance your data byte is 'A' thus your code should look like

CALL CRC16_INIT
MOV A,#'A'
CALL CRC16_ADD
CALL CRC16_GET

The other mistake you are making is the code you posted is for CRC_CCITT and your CRC is initialised as 0x0000 where as the page you are talking about initialises your CRC as 0xffff.

Regards,
Prahlad Purohit

List of 29 messages in thread
TopicAuthorDate
About CRC-16            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
   What CRC-16?            01/01/70 00:00      
      RE: What CRC-16?            01/01/70 00:00      
         RE: What CRC-16?            01/01/70 00:00      
         RE: What CRC-16?            01/01/70 00:00      
         It works for me!            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
      RE: About CRC-16            01/01/70 00:00      
         RE: Initial values            01/01/70 00:00      
            RE: Initial values            01/01/70 00:00      
         RE: About CRC-16            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
      Read the article            01/01/70 00:00      
      RE: About CRC-16            01/01/70 00:00      
         RE: Karma            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
      RE: About CRC-16            01/01/70 00:00      
      RE: About CRC-16            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
      RE: About CRC-16            01/01/70 00:00      
         RE: About CRC-16            01/01/70 00:00      
   RE: About CRC-16            01/01/70 00:00      
      RE: About CRC-16            01/01/70 00:00      
         RE: About CRC-16            01/01/70 00:00      
            RE: About CRC-16            01/01/70 00:00      
               RE: About CRC-16            01/01/70 00:00      

Back to Subject List