Not sure how you are monitoring the AM/PM bit but, here is how I detect am and pm
Code:
if   rtchour.5 = 1 then
@ printstr2 37,1, "PM"   
else
@ printstr2 37,1, "AM" 
endif
rtchour is the byte from the rtc clock. the fifth bit is AM/PM, ignore the print stuff


Dave