A couple more instructions are left to fulfill the instructions set summary of the PIC 16F88 devices:
Now, let's see the instructions one by one:
This is the No Operation instructions. When this is executed, nothing will happen at all. It has no occurrence to anything on the chip or program. This instructions is commonly used to create time delays for synchronization or other purposes.
nop ;This program will do nothing at all nop nop
This instructions will clear the Watchdog timer. The Watchdog timer is a very useful independent on-chip timer that is used to ensure the chip is operating normally. When the Watchdog Timer is enabled, it will then require periodically a Watchdog Timer software reset via this instruction. The programmer needs to have put this instructions in strategically positions where it will periodically reset the Watchdog Timer. If the timer is not reseted within a preselected time period, the Watchdog Timer will reset the PIC and the program will start over, because it will assume that the program flow is interrupted of fallen into an infinitude loop. The Watchdog Timer will be extensively explained on the advanced book pages.
. . CLRWDT ;The Watchdog Timer is reseted . .
This instruction will put the chip into Sleep mode. Sleep mode is a state where the PIC will draw as low as 0.1uA current, and it will only have some basic operations still running for waking it up. The Sleep mode is basically for power maintenance.
When the SLEEP instruction is excecuted, the Watchdog timer and it's prescaller are cleared. The Power Down bit (-PD) is also cleared, and the Time Out Status bit (-TO) is set. The chip then goes into Sleep mode and the oscillator stops.
. . SLEEP ;The chip is gone into Sleep mode . .
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise without the prior written permission of the author.
Read the Disclaimer
All trademarks used are properties of their respective owners.
Copyright © 2007-2009 Lazaridis Giorgos.
All rights reserved.