Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sonsivri/public_html/forum/Sources/Load.php(225) : runtime-created function on line 3

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sonsivri/public_html/forum/Sources/Load.php(225) : runtime-created function on line 3
16f1937 mikroC problem - Sonsivri
The Godfather talking
You think I am funny guy huh?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 15, 2026, 03:23:06 03:23


Login with username, password and session length


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

Posts: 318

Thank You
-Given: 101
-Receive: 607


« on: October 17, 2021, 02:23:54 14: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, 05:10:09 17: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, 05:23:03 17:23 by zuisti » Logged
ahmed
Cracking Team
Senior Member
****
Offline Offline

Posts: 318

Thank You
-Given: 101
-Receive: 607


« Reply #2 on: October 17, 2021, 05:57:15 17: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, 06:00:58 18:00 by ahmed » Logged
jack12345
Junior Member
**
Offline Offline

Posts: 49

Thank You
-Given: 59
-Receive: 134


Happy diy


« Reply #3 on: October 19, 2021, 09:07:25 21: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: 59
-Receive: 134


Happy diy


« Reply #4 on: October 22, 2021, 05:52:28 05: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