Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 21, 2024, 03:12:24 15:12


Login with username, password and session length


Pages: [1]
Print
Author Topic: 16f1937 mikroC problem  (Read 4600 times)
0 Members and 1 Guest are viewing this topic.
ahmed
Cracking Team
Senior Member
****
Offline Offline

Posts: 316

Thank You
-Given: 101
-Receive: 601


« on: October 17, 2021, 09:23:54 09:23 »

Hello , I want to interface a keypad and LCD with pic16f1937.

Everything is working fine over 16f877a but with controller it is not working at all.

Project folder and Proteus simulation file is attached , any help would be appreciated.
Logged
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #1 on: October 17, 2021, 12:10:09 12:10 »

Hi Ahmed;

First, set ANSELA to zero so that you can use the PORTA bits as digital I/O.
Second, to avoid RMW problems use LATAx bits to define the LCD module connections (instead of the RAx bits).

Study the datasheet!
Greets: zuisti
« Last Edit: October 17, 2021, 12:23:03 12:23 by zuisti » Logged
ahmed
Cracking Team
Senior Member
****
Offline Offline

Posts: 316

Thank You
-Given: 101
-Receive: 601


« Reply #2 on: October 17, 2021, 12:57:15 12:57 »

Hi Ahmed;

First, set ANSELA to zero so that you can use the PORTA bits as digital I/O.
Second, to avoid RMW problems use LATAx bits to define the LCD module connections (instead of the RAx bits).

Study the datasheet!
Greets: zuisti

I am bit confused with these datasheet variables , studying about mikroc (newbie)

Can you give me any good example please?

or modify the code , if possible.

Edit:
By the ANSELA=0; solved the problem Smiley
« Last Edit: October 17, 2021, 01:00:58 13:00 by ahmed » Logged
jack12345
Junior Member
**
Offline Offline

Posts: 49

Thank You
-Given: 57
-Receive: 134


Happy diy


« Reply #3 on: October 19, 2021, 04:07:25 16:07 »

I took the time to take a look!!
pic16f1937 portA output I/O
Execution can be displayed!!
Logged
jack12345
Junior Member
**
Offline Offline

Posts: 49

Thank You
-Given: 57
-Receive: 134


Happy diy


« Reply #4 on: October 22, 2021, 12:52:28 00:52 »

This website has some examples of mikroC Projects pic18F!!
But there is no pic16f1937 chip!!

https://simple-circuit.com/mikroc-projects/
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC