03.01.2013 Views

escuelasuperiorpolite cnicadechimborazo - DSpace ESPOCH

escuelasuperiorpolite cnicadechimborazo - DSpace ESPOCH

escuelasuperiorpolite cnicadechimborazo - DSpace ESPOCH

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

P D U e s p e c if ic a la p e t ic ió n la d ir e c c ió n e n q u e c o m i e n z a , e s d e c ir la<br />

d ir e c c ió n d e la p r im e r a b o b in a e s p e c if ic a d a , y e l n ú m e r o d e b o b in a s . E n la s<br />

b o b in a s P D U e s c o m e n z a d o e n c e r o . P o r lo t a n t o la s b o b in a s n u m e r a d a s<br />

1 - 1 6 s e t r a t a n c o m o 0 - 15.<br />

b) 0 2 ( 0 x 0 2 ) L e y e n d o E n t r a d a s D i s c r e t a s : Est e c ó d ig o d e la f u n c ió n s e<br />

u t iliz a p a r a le e r a p a r t ir 1 a 2 0 0 0 e s t a d o s c o n t i g u o s d e e n t r a d a s d is c r e t a s<br />

e n u n d is p o s it iv o a le ja d o . L a P D U e s p e c if ic a la p e t ic ió n d e la d ir e c c ió n q u e<br />

c o m ie n z a , e s d e c ir la p r im e r a d ir e c c ió n d e e n t r a d a e s p e c if ic a d a , y e l<br />

n ú m e r o d e e n t r a d a s . E n la P D U la s e n t r a d a s d is c r e t a s e s c o m e n z a d o e n<br />

c e r o . P o r lo t a n t o la s e n t r a d a s d is c r e t a s n u m e r a d a s 1 - 1 6 s e t r a t a n c o m o 0 -<br />

1 5 .<br />

c) 0 3 ( 0 x 0 3 ) L e y e n d o y l l e v a n d o l o s r e g i s t r o s : E s t e c ó d ig o d e f u n c ió n s e<br />

u t iliz a p a r a le e r e l c o n t e n i d o d e u n b lo q u e c o n t ig u o p a r a l le v a r a c a b o lo s<br />

r e g is t r o s d e u n d is p o s it iv o r e m o t o . L a p e t ic i ó n d e la P D U e s p e c if ic a la<br />

d ir e c c ió n d e l r e g is t r o q u e c o m ie n z a y e l n ú m e r o d e r e g is t r o s . E n la P D U lo s<br />

r e g is t r o s s o n e l c o m e n z a d o s e n c e r o . P o r lo t a n t o r e g is t r o s n u m e r a d o s 1 -<br />

1 6 s e t r a t a n c o m o 0 - 1 5 .<br />

d) 0 4 ( 0 x 0 4 ) L e y e n d o l o s r e g i s t r o s e n t r a n t e s : E s t e c ó d ig o d e la f u n c ió n s e<br />

u t iliz a p a r a le e r a p a r t ir d e la 1 a a p r o x im a d a m e n t e . 1 2 5 r e g is t r o s c o n t ig u o s<br />

d e la e n t r a d a d e u n d is p o s it iv o r e m o t o . L a p e t ic ió n P D U e s p e c if ic a la<br />

d ir e c c ió n d e l r e g is t r o q u e c o m ie n z a y e l n ú m e r o d e r e g is t r o s . E n la P D U lo s<br />

r e g is t r o s s o n c o m e n z a d o s e n c e r o . P o r lo t a n t o d e r e g is t r o s e n t r a d a 1 - 1 6<br />

n u m e r a d o s e t r a t a c o m o 0 - 15.<br />

e) 0 5 ( 0 x 0 5 ) E s c r i b i r u n a B o b i n a P a r t i c u l a r : E s t e c ó d ig o d e la f u n c ió n s e<br />

u t iliz a p a r a e s c r ib ir u n a s o la s a li d a E N C E N D I D O o A P A G A D O e n u n<br />

d is p o s it iv o r e m o t o . E l e s t a d o O N . / O F F e s e s p e c if ic a d o p o r u n a c o n s t a n t e<br />

e n lo s d a t o s d e la p e t ic ió n d e c a m p o . U n v a lo r F F 0 0 h e x a g o n a l s o lic it a la<br />

s a lid a p a r a s e r E N C E N D I D O . U n v a lo r d e 0 0 0 0 p e t ic io n e s p a r a s e r<br />

A P A G A D O . T o d o s lo s o t r o s v a lo r e s s o n s o n il e g a le s y n o a f e c t a r á n la<br />

s a lid a .<br />

83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!