38 views|1 replies

969

Posts

0

Resources
The OP
 

The difference between ( M0P_RTC->CR0 & 0x7faf ) != 0x4188 and ( M0P_RTC->CR0 & 0x4188 ) != 0x4188 [Copy link]

邀请:@maychang   @chunyang   @damiaa   @huo_hu   参与回复

Why is it not written as if ( ( M0P_RTC->CR0 & 0x7faf ) !=0x4188 )

if ( ( M0P_RTC->CR0 & 0x4188) !=0x4188 )

This post is from MCU

Latest reply

0x7faf ==》0111 1111 1010 1111 | | | | | | | | | | | | | | Bit to be judged 0x4188=》 0100 0001 1000 1000 | | | | The bit to be judged The bits to be judged are different, that is, M0P_RTC->CR0 has these bits to be judged There are more bits to be judged above, and all bits are related to the above results The extra bits that are not to be judged have nothing to do with the result.   Details Published on 2024-11-15 11:43
 

6063

Posts

4

Resources
2
 

0x7faf ==》0111 1111 1010 1111

| | | | | | | | | | | | | | Bit to be judged

0x4188=》 0100 0001 1000 1000

| | | | The bit to be judged

The bits to be judged are different, that is, M0P_RTC->CR0 has these bits to be judged

There are more bits to be judged above, and all bits are related to the above results

The extra bits that are not to be judged have nothing to do with the result.

This post is from MCU
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list