problem with QD4, pin number 2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

problem with QD4, pin number 2

1,475件の閲覧回数
Deepak1
Contributor IV
Dear sir,
I am using MCS908QD4,i want to turn on the SCR Connected to pin no. 2 & 5.
at first i used only pin no. 5 & pin no. 2 not in use.but there is no o/p on pin no. 5 & o/p at pin no. 2 showing some voltage.So plz tell me why i m not gettnig o/p,
my initial settings are like this,
 
SOPT1  = 0x50;           
  SPMSC1 = 0x1c;   
            
  SPMSC2 = 0x00;     
  ICSC1  = 0x00;  
 ICSC2  = 0x40;  
  ICSTRM = 0x99;   
  ICSSC  = 0x01;      
  SRS    =0x82;    
 SOPT2  = 0x00;                       
              
 
//*********************PORT INIT************************************************** 
PTAPE = 0x00;  
PTASE = 0x3f;
  PTADS = 0x18;    
PTADD = 0x18; 
ラベル(1)
0 件の賞賛
返信
1 返信

663件の閲覧回数
peg
Senior Contributor IV
Hi Deepak,
 
I am not exactly clear on what you are trying to say but here goes anyway.
Pin 2 is shared with then BKGD function.
This is enabled out of power up.
To use this pin as GPIO you disable this function by clearing 1,SOPT1 which you are doing.
But, this is a write once register, make sure the write you are showing us here is the only one that occurs.
Only the first write to this register is honoured!
Maybe this is your problem. If not please try again to explain your problem.
 
0 件の賞賛
返信