<?xml version="1.0" encoding="utf-8" ?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
				<channel rdf:about="http://www.8051projects.net/">
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>
				<dc:language>en-gb</dc:language>
				<dc:date>2008-12-02T00:21:00-08:00</dc:date>
				<dc:creator>contact@nospam.com</dc:creator>
				<admin:generatorAgent rdf:resource="http://e107.org" />
				<admin:errorReportsTo rdf:resource="mailto:contact@nospam.com" />
				<sy:updatePeriod>hourly</sy:updatePeriod>
				<sy:updateFrequency>1</sy:updateFrequency>
				<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
				<items>
				<rdf:Seq>
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9505.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9505.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9505.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9505.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t9505.html" />
				</rdf:Seq>
				</items>
				</channel>
						<item rdf:about="http://www.8051projects.net/forum-t9505.html">
						<title>Please check my I/O setting...frustated</title>
						<link>http://www.8051projects.net/forum-t9505.html</link>
						<dc:date>2008-12-02T00:21:00-08:00</dc:date>
						<dc:creator></dc:creator>
						<dc:subject></dc:subject>
						<description>Hi, Ajay, if u r there...or anyone else...i am using pic12f629 ... which has 5 I/O and 1 always input GP 3, i was trying to simulate the I/O setting in MPLAB IDE v7.3this the code below...	BSF	STATUS,5	; go to bank 1	MOVLW	b'00111000'; setting 3,4,5 input, 0,1,2 output	MOVWF	TRISIO;	BCF	STATUS,5; go back to bank 0	MOVLW	00h	; clear GPIO	MOVWF	GPIO;my problem is, wat i saw from the simulation mode, monitor on the TRISIO , i found that my TRISIO is always 0x08 instead of 0x38 (supposed like this 0x38) !!! i tried many combination again, its only changing the last four bit. why i cant change the bit 4 and bit 5 to input? please HELP....................................very frustated....</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9505.html">
						<title>Re: Please check my I/O setting...frustated</title>
						<link>http://www.8051projects.net/forum-t9505.html</link>
						<dc:date>2008-12-02T00:21:00-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>when you write 1 to GPIO bits then that GPIO becomes input port, so whatever is there on the input will be read while reading GPIO register.In your case (in simulator) inputs are open and not connected to anything so ports (3,4,5) must read 0. Where as GPIO bit 3 will always read 1 (read datasheet for more information). and when MCLREN = 1 then GPIO bit 3 will always read 0.Please read datasheet carefully.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9505.html">
						<title>Re: Please check my I/O setting...frustated</title>
						<link>http://www.8051projects.net/forum-t9505.html</link>
						<dc:date>2008-12-02T00:21:00-08:00</dc:date>
						<dc:creator>nicholastyc</dc:creator>
						<dc:subject></dc:subject>
						<description>so in this case , my port setting is correct? i wan my GPIO3,4,5 as inputs and GPIO 0,1,2  as outputs. i read on the datasheet before i post. because i don understand on the MPLAB SIM, cos it never shows on the TRISIO that my GPIO  4,5 are the inputs. now u clear my mind.thanks for your information.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9505.html">
						<title>Re: Please check my I/O setting...frustated</title>
						<link>http://www.8051projects.net/forum-t9505.html</link>
						<dc:date>2008-12-02T00:21:00-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>check the file registers, it will atleast show the value you are storing in TRISIO.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t9505.html">
						<title>Re: Please check my I/O setting...frustated</title>
						<link>http://www.8051projects.net/forum-t9505.html</link>
						<dc:date>2008-12-02T00:21:00-08:00</dc:date>
						<dc:creator>nicholastyc</dc:creator>
						<dc:subject></dc:subject>
						<description>HI AJAY,the trisio never show my GPIO 4 and 5 as input.i just cant understand why..my code	ORG	0x00	BCF	STATUS,RP0;	MOVLW	00h	;	MOVWF	GPIO;	BSF	STATUS,RP0	;	MOVLW	38h;	MOVWF	TRISIO;	BCF	STATUS,RP0;then will go to main...thanks..please correct my code if there is any problem..</description>
						</item>
				</rdf:RDF>